nx_audio_playback.nx
buildroot/runtime/nx_audio_playback.nx
about
nx_audio_playback.nx -- abstract audio-playback backend + null impl.
Symmetric to nx_audio_capture: backends accept PCM frames from
nx_audio_session and route them to a speaker (or /dev/null).
dependencies 1 imports · 2 importers
imports: nx_syscalls_x86_64.nx
imported by: nx_audio_session.nxnx_call.nx
structs
| 32 | struct nx_audio_playback |
| 128 | struct nx_audio_playback_tap_state |
consts
| 16 | const NX_AUDIO_PLAYBACK_KIND_UNKNOWN: i64 = 0 |
| 17 | const NX_AUDIO_PLAYBACK_KIND_NULL: i64 = 1 |
| 18 | const NX_AUDIO_PLAYBACK_KIND_TAP: i64 = 2 // capture into a buffer for the smoke |
| 19 | const NX_AUDIO_PLAYBACK_KIND_ALSA: i64 = 3 |
| 20 | const NX_AUDIO_PLAYBACK_KIND_WEBAUDIO: i64 = 4 |
| 21 | const NX_AUDIO_PLAYBACK_KIND_COREAUDIO: i64 = 5 |
| 22 | const NX_AUDIO_PLAYBACK_KIND_N: i64 = 6 |
| 26 | const NX_AUDIO_PLAYBACK_ERR_NOT_OPEN: i64 = -1 |
| 27 | const NX_AUDIO_PLAYBACK_ERR_BAD_SIZE: i64 = -2 |
| 28 | const NX_AUDIO_PLAYBACK_ERR_BACKEND: i64 = -3 |
| 45 | const NX_AUDIO_PLAYBACK_BYTES: i64 = 64 |
| 134 | const NX_AUDIO_PLAYBACK_TAP_STATE_BYTES: i64 = 24 |
functions
| 49 | func nx_audio_playback_kind(p: *nx_audio_playback) -> i64 { return p.kind } |
| 50 | func nx_audio_playback_sample_rate(p: *nx_audio_playback) -> i64 { return p.sample_rate } |
| 51 | func nx_audio_playback_channels(p: *nx_audio_playback) -> i64 { return p.channels } |
| 52 | func nx_audio_playback_is_open(p: *nx_audio_playback) -> i64 { return p.state } |
| 56 | func nx_audio_playback_open(p: *nx_audio_playback) -> i64 called by 1: nx_audio_session_open_impl |
| 60 | func nx_audio_playback_close(p: *nx_audio_playback) -> i64 called by 1: nx_audio_session_close_impl |
| 64 | func nx_audio_playback_push_frame(p: *nx_audio_playback, called by 1: nx_audio_session_decode_play |
| 73 | func nx_audio_playback_default_open(p: *nx_audio_playback) -> i64 |
| 78 | func nx_audio_playback_default_close(p: *nx_audio_playback) -> i64 |
| 83 | func nx_audio_playback_default_push_frame(p: *nx_audio_playback, |
| 90 | func nx_audio_playback_init(p: *nx_audio_playback, |
| 107 | func nx_audio_playback_null_push_frame(p: *nx_audio_playback, |
| 112 | func nx_audio_playback_null_new(p: *nx_audio_playback, calls 1: nx_audio_playback_init |
| 136 | func nx_audio_playback_tap_push_frame(p: *nx_audio_playback, |
| 152 | func nx_audio_playback_tap_new(p: *nx_audio_playback, calls 1: nx_audio_playback_init |
| 167 | func nx_audio_playback_tap_bytes_seen(p: *nx_audio_playback) -> i64 |
| 173 | func nx_audio_playback_tap_byte_at(p: *nx_audio_playback, off: i64) -> i64 |