Basic audio stream. More...
Data Fields | |
unsigned char * | pcm_data |
PCM data buffer, 16-bit samples, 2-channel, 44100 Hz. | |
int | used |
Number of bytes in buffer. | |
int | length |
Maximum number of bytes in buffer. | |
unsigned char * | encoded_data |
Encoded audio data buffer, as written by the encoder. | |
int | encoded_data_used |
Number of bytes in the encoded data buffer. | |
int | encoded_data_length |
Maximum number of bytes in the encoded data buffer. | |
guac_audio_encoder * | encoder |
Arbitrary codec encoder. | |
guac_client * | client |
The client associated with this audio stream. | |
guac_stream * | stream |
The actual stream associated with this audio stream. | |
int | rate |
The number of samples per second of PCM data sent to this stream. | |
int | channels |
The number of audio channels per sample of PCM data. | |
int | bps |
The number of bits per sample per channel for PCM data. | |
int | pcm_bytes_written |
The number of PCM bytes written since the audio chunk began. | |
void * | data |
Encoder-specific state data. |
Basic audio stream.
PCM data is added to the stream. When the stream is flushed, a write handler receives PCM data packets and, presumably, streams them to the guac_stream provided.
int guac_audio_stream::bps |
The number of bits per sample per channel for PCM data.
Legal values are 8 or 16.
int guac_audio_stream::channels |
The number of audio channels per sample of PCM data.
Legal values are 1 or 2.
guac_audio_encoder* guac_audio_stream::encoder |
Arbitrary codec encoder.
When the PCM buffer is flushed, PCM data will be sent to this encoder.