|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Simple WAV file writer implementation for audio debugging. More...
Go to the source code of this file.
Data Structures | |
| struct | wav_riff_header_t |
| WAV RIFF header (first 12 bytes of WAV file) More... | |
| struct | wav_fmt_chunk_t |
| WAV format chunk describing audio format parameters. More... | |
| struct | wav_data_header_t |
| WAV data chunk header preceding audio samples. More... | |
Functions | |
| wav_writer_t * | wav_writer_open (const char *filepath, int sample_rate, int channels) |
| int | wav_writer_write (wav_writer_t *writer, const float *samples, int num_samples) |
| void | wav_writer_close (wav_writer_t *writer) |
| bool | wav_dump_enabled (void) |
Simple WAV file writer implementation for audio debugging.
Definition in file wav_writer.c.
| bool wav_dump_enabled | ( | void | ) |
Definition at line 139 of file wav_writer.c.
Referenced by audio_analysis_init(), and audio_client_init().
| void wav_writer_close | ( | wav_writer_t * | writer | ) |
Definition at line 113 of file wav_writer.c.
Referenced by audio_analysis_destroy(), audio_cleanup(), audio_client_init(), and client_audio_pipeline_destroy().
| wav_writer_t * wav_writer_open | ( | const char * | filepath, |
| int | sample_rate, | ||
| int | channels | ||
| ) |
Definition at line 49 of file wav_writer.c.
References wav_data_header_t::data, wav_fmt_chunk_t::fmt, platform_fopen(), and wav_riff_header_t::riff.
Referenced by audio_analysis_init(), audio_client_init(), and client_audio_pipeline_create().
| int wav_writer_write | ( | wav_writer_t * | writer, |
| const float * | samples, | ||
| int | num_samples | ||
| ) |
Definition at line 95 of file wav_writer.c.
Referenced by audio_analysis_track_received_sample(), audio_analysis_track_sent_sample(), audio_process_received_samples(), and client_audio_pipeline_process_duplex().