TizenRT Public API
v2.0 M2
|
Public Member Functions | |
DataSource () | |
Constructs an empty DataSource. More... | |
~DataSource () | |
Deconstructs an empty DataSource. More... | |
DataSource (unsigned int channels, unsigned int sampleRate, audio_format_type_t pcmFormat) | |
Constructs a new object provide with audio configuration. More... | |
DataSource (const DataSource &) | |
Copy constructs for DataSource. More... | |
DataSource & | operator= (const DataSource &) |
Operator= for DataSource. More... | |
virtual bool | open ()=0 |
open the stream data More... | |
virtual bool | close ()=0 |
close the stream data More... | |
virtual bool | isPrepare ()=0 |
Whether data is ready to be read. More... | |
unsigned int | getChannels () |
Gets the channel count of the stream data. More... | |
unsigned int | getSampleRate () |
Gets the sample rate of the stream data. More... | |
audio_format_type_t | getPcmFormat () |
Gets the pcm format of the stream data. More... | |
void | setChannels (unsigned int channels) |
Sets the channel count of the stream data. More... | |
void | setSampleRate (unsigned int sampleRate) |
Sets the sample rate of the stream data. More... | |
void | setPcmFormat (audio_format_type_t pcmFormat) |
Sets the pcm format of the stream data. More... | |
void | setAudioType (audio_type_t audioType) |
Sets the audio type of the stream data. More... | |
audio_type_t | getAudioType () |
Gets the audio type of the stream data. More... | |
Definition at line 43 of file DataSource.h.
DataSource | ( | ) |
~DataSource | ( | ) |
DataSource | ( | unsigned int | channels, |
unsigned int | sampleRate, | ||
audio_format_type_t | pcmFormat | ||
) |
Constructs a new object provide with audio configuration.
#include <media/DataSource.h> param[in] channels The channels that the channels of audio param[in] sampleRate The sampleRate that the sample rate of audio param[in] pcmFormat The pcmFormat that the pcm format of audio
DataSource | ( | const DataSource & | ) |
|
pure virtual |
close the stream data
#include <media/DataSource.h>
Implemented in SocketOutputDataSource, FileOutputDataSource, BufferOutputDataSource, and FileInputDataSource.
audio_type_t getAudioType | ( | ) |
Gets the audio type of the stream data.
#include <media/DataSource.h>
unsigned int getChannels | ( | ) |
Gets the channel count of the stream data.
#include <media/DataSource.h>
audio_format_type_t getPcmFormat | ( | ) |
Gets the pcm format of the stream data.
#include <media/DataSource.h>
unsigned int getSampleRate | ( | ) |
Gets the sample rate of the stream data.
#include <media/DataSource.h>
|
pure virtual |
Whether data is ready to be read.
#include <media/DataSource.h>
Implemented in SocketOutputDataSource, FileOutputDataSource, BufferOutputDataSource, and FileInputDataSource.
|
pure virtual |
open the stream data
#include <media/DataSource.h>
Implemented in SocketOutputDataSource, FileOutputDataSource, BufferOutputDataSource, and FileInputDataSource.
DataSource& operator= | ( | const DataSource & | ) |
void setAudioType | ( | audio_type_t | audioType | ) |
Sets the audio type of the stream data.
#include <media/DataSource.h>
[in] | audioType | The audioType that the audio type of stream data |
void setChannels | ( | unsigned int | channels | ) |
Sets the channel count of the stream data.
#include <media/DataSource.h>
[in] | channels | The channels that the channel count of stream data |
void setPcmFormat | ( | audio_format_type_t | pcmFormat | ) |
Sets the pcm format of the stream data.
#include <media/DataSource.h>
[in] | pcmFormat | The pcmFormat that the pcm format of stream data |
void setSampleRate | ( | unsigned int | sampleRate | ) |
Sets the sample rate of the stream data.
#include <media/DataSource.h>
[in] | sampleRate | The sampleRate that the sample rate of stream data |