Streaming buffer for audio, to be used in bgm audio sources.
More...
#include <bayonne.h>
|
virtual bool | isActive (void) |
| Check if streaming source is active. More...
|
|
virtual unsigned long | getPosition (timeout_t framing) |
| Get position marker we use in audio consumer. More...
|
|
virtual Linear | getBuffer (unsigned long *mark, timeout_t duration) |
| Used by consumer to get a linear buffer of audio data. More...
|
|
Streaming buffer for audio, to be used in bgm audio sources.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org audio buffering
ost::StreamingBuffer::StreamingBuffer |
( |
const char * |
id, |
|
|
timeout_t |
size = 600 , |
|
|
Rate |
rate = rate8khz |
|
) |
| |
|
protected |
virtual ost::StreamingBuffer::~StreamingBuffer |
( |
| ) |
|
|
protectedvirtual |
void ost::StreamingBuffer::cleanup |
( |
| ) |
|
|
protected |
virtual void ost::StreamingBuffer::clearBuffer |
( |
timeout_t |
duration | ) |
|
|
protectedvirtual |
static StreamingBuffer* ost::StreamingBuffer::get |
( |
const char * |
id, |
|
|
Rate |
rate |
|
) |
| |
|
static |
Find a streaming feed by identifier.
- Returns
- pointer to feed or NULL.
- Parameters
-
identifer | to search for. |
sample | rate to use. |
virtual Linear ost::StreamingBuffer::getBuffer |
( |
unsigned long * |
mark, |
|
|
timeout_t |
duration |
|
) |
| |
|
virtual |
Used by consumer to get a linear buffer of audio data.
- Returns
- data buffer of samples.
- Parameters
-
consumer | position. |
timeout | of frame for updating position. |
virtual unsigned long ost::StreamingBuffer::getPosition |
( |
timeout_t |
framing | ) |
|
|
virtual |
Get position marker we use in audio consumer.
- Parameters
-
- Returns
- consumer position.
virtual bool ost::StreamingBuffer::isActive |
( |
void |
| ) |
|
|
virtual |
Check if streaming source is active.
- Returns
- true if active.
virtual Linear ost::StreamingBuffer::putBuffer |
( |
timeout_t |
duration | ) |
|
|
protectedvirtual |
unsigned long ost::StreamingBuffer::count |
|
protected |
Linear ost::StreamingBuffer::data |
|
protected |
unsigned long ost::StreamingBuffer::position |
|
protected |
The documentation for this class was generated from the following file: