TizenRT Public API
v2.0 M2
|
Public Member Functions | |
FileOutputDataSource ()=delete | |
Constructs an empty FileOutputDataSource. More... | |
FileOutputDataSource (const std::string &dataPath) | |
Constructs an empty FileOutputDataSource. More... | |
FileOutputDataSource (unsigned int channels, unsigned int sampleRate, audio_format_type_t pcmFormat, const std::string &dataPath) | |
Constructs a new object provide with audio configuration. More... | |
FileOutputDataSource (const FileOutputDataSource &source) | |
Copy constructs for FileOutputDataSource. More... | |
FileOutputDataSource & | operator= (const FileOutputDataSource &source) |
Operator= for FileOutputDataSource. More... | |
virtual | ~FileOutputDataSource () |
Deconstructs an empty FileOutputDataSource. More... | |
bool | isPrepare () override |
Whether file is ready to be write. More... | |
bool | open () override |
Open the file. More... | |
bool | close () override |
Close the file. More... | |
ssize_t | write (unsigned char *buf, size_t size) override |
Write the file. More... | |
void | setRecorder (std::shared_ptr< MediaRecorderImpl > mr) |
Register current recorder to get data souce state and other infomations. 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 42 of file FileOutputDataSource.h.
|
delete |
Constructs an empty FileOutputDataSource.
#include <media/FileOutputDataSource.h> Delete the default construct
FileOutputDataSource | ( | const std::string & | dataPath | ) |
Constructs an empty FileOutputDataSource.
#include <media/FileOutputDataSource.h> param[in] dataPath The dataPath that the path of data
FileOutputDataSource | ( | unsigned int | channels, |
unsigned int | sampleRate, | ||
audio_format_type_t | pcmFormat, | ||
const std::string & | dataPath | ||
) |
Constructs a new object provide with audio configuration.
#include <media/FileOutputDataSource.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 param[in] datapath The datapath that the path of data
FileOutputDataSource | ( | const FileOutputDataSource & | source | ) |
|
virtual |
Deconstructs an empty FileOutputDataSource.
#include <media/FileOutputDataSource.h>
|
overridevirtual |
Close the file.
#include <media/FileOutputDataSource.h>
Implements DataSource.
|
inherited |
Gets the audio type of the stream data.
#include <media/DataSource.h>
|
inherited |
Gets the channel count of the stream data.
#include <media/DataSource.h>
|
inherited |
Gets the pcm format of the stream data.
#include <media/DataSource.h>
|
inherited |
Gets the sample rate of the stream data.
#include <media/DataSource.h>
|
overridevirtual |
Whether file is ready to be write.
#include <media/FileOutputDataSource.h>
Implements DataSource.
|
overridevirtual |
Open the file.
#include <media/FileOutputDataSource.h>
Implements DataSource.
FileOutputDataSource& operator= | ( | const FileOutputDataSource & | source | ) |
|
inherited |
Sets the audio type of the stream data.
#include <media/DataSource.h>
[in] | audioType | The audioType that the audio type of stream data |
|
inherited |
Sets the channel count of the stream data.
#include <media/DataSource.h>
[in] | channels | The channels that the channel count of stream data |
|
inherited |
Sets the pcm format of the stream data.
#include <media/DataSource.h>
[in] | pcmFormat | The pcmFormat that the pcm format of stream data |
|
inlineinherited |
Register current recorder to get data souce state and other infomations.
#include <media/OutputDataSource.h>
Definition at line 100 of file OutputDataSource.h.
|
inherited |
Sets the sample rate of the stream data.
#include <media/DataSource.h>
[in] | sampleRate | The sampleRate that the sample rate of stream data |
|
overridevirtual |
Write the file.
#include <media/FileOutputDataSource.h> param[in] buf poiter to a buffer param[in] size Number of size to write
Implements OutputDataSource.