ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
wav_writer_t Struct Reference

File handle and sample counters needed to finalize a WAV recording. More...

#include <include/ascii-chat/audio/wav_writer.h>

Data Fields

FILE * file
size_t samples_written
int sample_rate
int channels

Detailed Description

File handle and sample counters needed to finalize a WAV recording.

File handle and sample counters needed to finalize a WAV recording

file is the owned output handle; samples_written, sample_rate, and channels let close-time code calculate RIFF and data sizes after samples have been appended.

Definition at line 28 of file wav_writer.h.

Field Documentation

◆ channels

int wav_writer_t::channels

Definition at line 32 of file wav_writer.h.

Referenced by wav_writer_open().

◆ file

FILE* wav_writer_t::file

Definition at line 29 of file wav_writer.h.

Referenced by wav_writer_close(), wav_writer_open(), and wav_writer_write().

◆ sample_rate

int wav_writer_t::sample_rate

Definition at line 31 of file wav_writer.h.

Referenced by wav_writer_open().

◆ samples_written

size_t wav_writer_t::samples_written

Definition at line 30 of file wav_writer.h.

Referenced by wav_writer_close(), wav_writer_open(), and wav_writer_write().


The documentation for this struct was generated from the following file: