![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Go to the source code of this file.
Functions | |
| void | audio_export (struct audio_export *state, const struct audio_frame *frame) |
| bool | audio_export_configure_raw (struct audio_export *s, int bps, int sample_rate, int ch_count) |
| void | audio_export_destroy (struct audio_export *state) |
| struct audio_export * | audio_export_init (const char *filename) |
| void | audio_export_raw (struct audio_export *s, void *data, unsigned len) |
| void | audio_export_raw_ch (struct audio_export *s, const void **channels_data, unsigned sample_count) |
Definition in file export.h.
| void audio_export | ( | struct audio_export * | state, |
| const struct audio_frame * | frame ) |
Definition at line 221 of file export.c.
References audio_desc_eq(), audio_desc_from_frame(), audio_export_raw(), audio_export_thread(), audio_desc::ch_count, configure(), frame, audio_export::saved_format, and audio_export::thread_id.
Referenced by audio_play_dump_put_frame(), and export_audio().

| bool audio_export_configure_raw | ( | struct audio_export * | s, |
| int | bps, | ||
| int | sample_rate, | ||
| int | ch_count ) |
Configure audio export for exporting samples directly from a sample buffer. Cannot be called when export is already configured by a previous call to this function, or by audio_export().
Definition at line 136 of file export.c.
References AC_PCM, audio_export_thread(), audio_desc::bps, audio_desc::ch_count, audio_desc::codec, configure(), fmt, sample_rate, audio_export::saved_format, and audio_export::thread_id.
Referenced by reconfigure_echo().

| void audio_export_destroy | ( | struct audio_export * | state | ) |
Definition at line 182 of file export.c.
References audio_export::filename, audio_export::lock, audio_export::new_work_ready, audio_export::ring, ring_buffer_destroy(), audio_export::should_exit_worker, audio_export::thread_id, audio_export::wav, wav_writer_close(), audio_export::worker_cv, and audio_export::worker_waiting.
Referenced by disable_export().

| struct audio_export * audio_export_init | ( | const char * | filename | ) |
Definition at line 159 of file export.c.
References audio_export::filename, audio_export::lock, audio_export::new_work_ready, audio_export::ring, audio_export::saved_format, audio_export::should_exit_worker, audio_export::thread_id, audio_export::worker_cv, and audio_export::worker_waiting.
Referenced by audio_play_dump_reconfigure(), enable_export(), and reconfigure_echo().
| void audio_export_raw | ( | struct audio_export * | s, |
| void * | data, | ||
| unsigned | len ) |
For exporting audio directly from a sample buffer. Before using this, the audio_export needs to be configured with audio_export_configure_raw()
| len | size of data in bytes |
Definition at line 209 of file export.c.
References audio_desc::ch_count, len, audio_export::lock, audio_export::new_work_ready, audio_export::ring, ring_buffer_write(), audio_export::saved_format, audio_export::worker_cv, and audio_export::worker_waiting.
Referenced by audio_export().

| void audio_export_raw_ch | ( | struct audio_export * | s, |
| const void ** | channels_data, | ||
| unsigned | sample_count ) |
Export audio from separate sample buffers for each channel.
| channels_data | array of pointers to sample buffers |
| sample_count | number of samples to export |
Definition at line 262 of file export.c.
References audio_desc::bps, audio_desc::ch_count, len, audio_export::lock, audio_export::new_work_ready, audio_export::ring, ring_advance_write_idx(), ring_get_write_regions(), audio_export::saved_format, audio_export::worker_cv, audio_export::worker_waiting, and write_samples().
Referenced by echo_cancel().
