TizenRT Public API  v2.0 M2
InputDataSource Class Referenceabstract
Inheritance diagram for InputDataSource:
Collaboration diagram for InputDataSource:

Public Member Functions

 InputDataSource ()
 Constructs an empty InputDataSource. More...
 
 InputDataSource (const InputDataSource &source)
 Copy constructs for InputDataSource. More...
 
InputDataSourceoperator= (const InputDataSource &source)
 Operator= for InputDataSource. More...
 
virtual ~InputDataSource ()
 Deconstructs an empty InputDataSource. More...
 
virtual ssize_t read (unsigned char *buf, size_t size)=0
 Gets the stream data. 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...
 

Detailed Description

Definition at line 44 of file InputDataSource.h.

Constructor & Destructor Documentation

Constructs an empty InputDataSource.

#include <media/InputDataSource.h>

Since
TizenRT v2.0
InputDataSource ( const InputDataSource source)

Copy constructs for InputDataSource.

#include <media/InputDataSource.h>

Since
TizenRT v2.0
virtual ~InputDataSource ( )
virtual

Deconstructs an empty InputDataSource.

#include <media/InputDataSource.h>

Since
TizenRT v2.0

Member Function Documentation

virtual bool close ( )
pure virtualinherited

close the stream data

#include <media/DataSource.h>

Since
TizenRT v2.0

Implemented in SocketOutputDataSource, FileOutputDataSource, BufferOutputDataSource, and FileInputDataSource.

audio_type_t getAudioType ( )
inherited

Gets the audio type of the stream data.

#include <media/DataSource.h>

Returns
The audio type of the stream data.
Since
TizenRT v2.0
unsigned int getChannels ( )
inherited

Gets the channel count of the stream data.

#include <media/DataSource.h>

Returns
The channel count of the stream data.
Since
TizenRT v2.0
audio_format_type_t getPcmFormat ( )
inherited

Gets the pcm format of the stream data.

#include <media/DataSource.h>

Returns
The pcm format of the stream data.
Since
TizenRT v2.0
unsigned int getSampleRate ( )
inherited

Gets the sample rate of the stream data.

#include <media/DataSource.h>

Returns
The sample rate of the stream data.
Since
TizenRT v2.0
virtual bool isPrepare ( )
pure virtualinherited

Whether data is ready to be read.

#include <media/DataSource.h>

Since
TizenRT v2.0

Implemented in SocketOutputDataSource, FileOutputDataSource, BufferOutputDataSource, and FileInputDataSource.

virtual bool open ( )
pure virtualinherited

open the stream data

#include <media/DataSource.h>

Since
TizenRT v2.0

Implemented in SocketOutputDataSource, FileOutputDataSource, BufferOutputDataSource, and FileInputDataSource.

InputDataSource& operator= ( const InputDataSource source)

Operator= for InputDataSource.

#include <media/InputDataSource.h>

Since
TizenRT v2.0
virtual ssize_t read ( unsigned char *  buf,
size_t  size 
)
pure virtual

Gets the stream data.

#include <media/InputDataSource.h>

Since
TizenRT v2.0

Implemented in FileInputDataSource.

void setAudioType ( audio_type_t  audioType)
inherited

Sets the audio type of the stream data.

#include <media/DataSource.h>

Parameters
[in]audioTypeThe audioType that the audio type of stream data
Since
TizenRT v2.0
void setChannels ( unsigned int  channels)
inherited

Sets the channel count of the stream data.

#include <media/DataSource.h>

Parameters
[in]channelsThe channels that the channel count of stream data
Since
TizenRT v2.0
void setPcmFormat ( audio_format_type_t  pcmFormat)
inherited

Sets the pcm format of the stream data.

#include <media/DataSource.h>

Parameters
[in]pcmFormatThe pcmFormat that the pcm format of stream data
Since
TizenRT v2.0
void setSampleRate ( unsigned int  sampleRate)
inherited

Sets the sample rate of the stream data.

#include <media/DataSource.h>

Parameters
[in]sampleRateThe sampleRate that the sample rate of stream data
Since
TizenRT v2.0

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