Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/android_audio/src/libaaudio_stub.rs
5394 views
1
// Copyright 2024 The ChromiumOS Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
//! Stub implementation of Android AAudio NDK
6
//!
7
//! This implementation is used to enable the virtio-snd for Android to be compiled without
8
//! Andoird AAudio NDK available. It is only used for testing purposes and not functional at
9
//! runtime.
10
11
use std::os::raw::c_void;
12
13
use crate::AAudioStream;
14
use crate::AAudioStreamBuilder;
15
use crate::AaudioFormatT;
16
use crate::AaudioResultT;
17
18
#[no_mangle]
19
extern "C" fn AAudio_createStreamBuilder(_builder: *mut *mut AAudioStreamBuilder) -> AaudioResultT {
20
unimplemented!();
21
}
22
23
#[no_mangle]
24
extern "C" fn AAudioStreamBuilder_delete(_builder: *mut AAudioStreamBuilder) -> AaudioResultT {
25
unimplemented!();
26
}
27
28
#[no_mangle]
29
extern "C" fn AAudioStreamBuilder_setBufferCapacityInFrames(
30
_builder: *mut AAudioStreamBuilder,
31
_num_frames: i32,
32
) {
33
unimplemented!();
34
}
35
36
#[no_mangle]
37
extern "C" fn AAudioStreamBuilder_setDirection(
38
_builder: *mut AAudioStreamBuilder,
39
_direction: u32,
40
) {
41
unimplemented!();
42
}
43
44
#[no_mangle]
45
extern "C" fn AAudioStreamBuilder_setFormat(
46
_builder: *mut AAudioStreamBuilder,
47
_format: AaudioFormatT,
48
) {
49
unimplemented!();
50
}
51
52
#[no_mangle]
53
extern "C" fn AAudioStreamBuilder_setSampleRate(
54
_builder: *mut AAudioStreamBuilder,
55
_sample_rate: i32,
56
) {
57
unimplemented!();
58
}
59
60
#[no_mangle]
61
extern "C" fn AAudioStreamBuilder_setChannelCount(
62
_builder: *mut AAudioStreamBuilder,
63
_channel_count: i32,
64
) {
65
unimplemented!();
66
}
67
68
#[no_mangle]
69
extern "C" fn AAudioStreamBuilder_openStream(
70
_builder: *mut AAudioStreamBuilder,
71
_stream: *mut *mut AAudioStream,
72
) -> AaudioResultT {
73
unimplemented!();
74
}
75
76
#[no_mangle]
77
extern "C" fn AAudioStream_getBufferSizeInFrames(_stream: *mut AAudioStream) -> i32 {
78
unimplemented!();
79
}
80
81
#[no_mangle]
82
extern "C" fn AAudioStream_requestStart(_stream: *mut AAudioStream) -> AaudioResultT {
83
unimplemented!();
84
}
85
86
#[no_mangle]
87
extern "C" fn AAudioStream_read(
88
_stream: *mut AAudioStream,
89
_buffer: *mut c_void,
90
_num_frames: i32,
91
_timeout_nanoseconds: i64,
92
) -> AaudioResultT {
93
unimplemented!();
94
}
95
96
#[no_mangle]
97
extern "C" fn AAudioStream_write(
98
_stream: *mut AAudioStream,
99
_buffer: *const c_void,
100
_num_frames: i32,
101
_timeout_nanoseconds: i64,
102
) {
103
unimplemented!();
104
}
105
106
#[no_mangle]
107
extern "C" fn AAudioStream_close(_stream: *mut AAudioStream) {
108
unimplemented!();
109
}
110
111