libguac  0.9.7
Data Fields
guac_audio_stream Struct Reference

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_encoderencoder
 Arbitrary codec encoder. More...
 
guac_clientclient
 The client associated with this audio stream.
 
guac_streamstream
 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. More...
 
int bps
 The number of bits per sample per channel for PCM data. More...
 
int pcm_bytes_written
 The number of PCM bytes written since the audio chunk began.
 
void * data
 Encoder-specific state data.
 

Detailed Description

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.

Field Documentation

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.


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