#include <bayonne.h>
Public Member Functions | |
| virtual bool | isActive (void) |
| Check if streaming source is active. | |
| virtual unsigned long | getPosition (timeout_t framing) |
| Get position marker we use in audio consumer. | |
| virtual Linear | getBuffer (unsigned long *mark, timeout_t duration) |
| Used by consumer to get a linear buffer of audio data. | |
Static Public Member Functions | |
| static StreamingBuffer * | get (const char *id, Rate rate) |
| Find a streaming feed by identifier. | |
Protected Member Functions | |
| void | cleanup () |
| StreamingBuffer (const char *id, timeout_t size=600, Rate rate=rate8khz) | |
| virtual | ~StreamingBuffer () |
| virtual Linear | putBuffer (timeout_t duration) |
| virtual void | clearBuffer (timeout_t duration) |
Protected Attributes | |
| unsigned long | position |
| unsigned long | count |
| Linear | data |
| ost::StreamingBuffer::StreamingBuffer | ( | const char * | id, | |
| timeout_t | size = 600, |
|||
| Rate | rate = rate8khz | |||
| ) | [protected] |
| virtual ost::StreamingBuffer::~StreamingBuffer | ( | ) | [protected, virtual] |
| void ost::StreamingBuffer::cleanup | ( | ) | [protected] |
| virtual Linear ost::StreamingBuffer::putBuffer | ( | timeout_t | duration | ) | [protected, virtual] |
| virtual void ost::StreamingBuffer::clearBuffer | ( | timeout_t | duration | ) | [protected, virtual] |
| static StreamingBuffer* ost::StreamingBuffer::get | ( | const char * | id, | |
| Rate | rate | |||
| ) | [static] |
Find a streaming feed by identifier.
| identifer | to search for. | |
| sample | rate to use. |
| virtual bool ost::StreamingBuffer::isActive | ( | void | ) | [virtual] |
Check if streaming source is active.
| virtual unsigned long ost::StreamingBuffer::getPosition | ( | timeout_t | framing | ) | [virtual] |
Get position marker we use in audio consumer.
| framing | size we will use. |
| virtual Linear ost::StreamingBuffer::getBuffer | ( | unsigned long * | mark, | |
| timeout_t | duration | |||
| ) | [virtual] |
Used by consumer to get a linear buffer of audio data.
| consumer | position. | |
| timeout | of frame for updating position. |
unsigned long ost::StreamingBuffer::position [protected] |
unsigned long ost::StreamingBuffer::count [protected] |
Linear ost::StreamingBuffer::data [protected] |
1.5.6