gst_plugins_symbian/gst/devsound/devsoundsinkwrapper.h
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
    94   	int buffersize;
    94   	int buffersize;
    95   	int volume;
    95   	int volume;
    96   	int dev_count;
    96   	int dev_count;
    97   	TInt iCallbackError;
    97   	TInt iCallbackError;
    98   	TUint32 fourcc;
    98   	TUint32 fourcc;
    99   	TUint32 iSamplesPlayed;
       
   100   	bool eosReceived;
    99   	bool eosReceived;
   101   	//sem_t mutex;
   100   	//sem_t mutex;
   102   	//RArray<TFourCC> supportedtypes;
   101   	//RArray<TFourCC> supportedtypes;
   103     CErrorConcealmentIntfc* iErrConcealmentIntfc;
   102     CErrorConcealmentIntfc* iErrConcealmentIntfc;
   104     CG711DecoderIntfc*      iG711DecoderIntfc;
   103     CG711DecoderIntfc*      iG711DecoderIntfc;
   105     CG729DecoderIntfc*      iG729DecoderIntfc;
   104     CG729DecoderIntfc*      iG729DecoderIntfc;
   106     CIlbcDecoderIntfc*      iIlbcDecoderIntfc;
   105     CIlbcDecoderIntfc*      iIlbcDecoderIntfc;
   107     CAudioOutput*           iAudioOutput;
   106     CAudioOutput*           iAudioOutput;
   108     bool iIsBufferToBeFilledDone;
   107 
   109 
   108 
   110 public:
   109 public:
   111 	void InitializeComplete(TInt aError);
   110 	void InitializeComplete(TInt aError);
   112 	void ToneFinished(TInt aError);
   111 	void ToneFinished(TInt aError);
   113 	void BufferToBeFilled(CMMFBuffer* aBuffer);
   112 	void BufferToBeFilled(CMMFBuffer* aBuffer);
   141 	void set_volume(DevSoundWrapper* handle,int volume);
   140 	void set_volume(DevSoundWrapper* handle,int volume);
   142 
   141 
   143 	int open_devsound(DevSoundWrapper **handle);
   142 	int open_devsound(DevSoundWrapper **handle);
   144 	int open_device(DevSoundWrapper **handle);
   143 	int open_device(DevSoundWrapper **handle);
   145     int initialize_devsound(GstDevsoundSink* sink);
   144     int initialize_devsound(GstDevsoundSink* sink);
   146     int pause_devsound(GstDevsoundSink *ds);
       
   147     int resume_devsound(GstDevsoundSink *ds);
       
   148     int close_devsound(GstDevsoundSink *ds);
   145     int close_devsound(GstDevsoundSink *ds);
   149     int check_if_device_open(DevSoundWrapper *handle) ;
   146     int check_if_device_open(DevSoundWrapper *handle) ;
       
   147 
   150 	int get_ds_cb_error(DevSoundWrapper *handle);
   148 	int get_ds_cb_error(DevSoundWrapper *handle);
   151 #ifdef AV_SYNC
       
   152     gboolean is_timeplayed_supported(DevSoundWrapper *handle);
       
   153 #endif /*AV_SYNC*/
       
   154 
   149 
   155 	//Error Concealment custom interface
   150 	//Error Concealment custom interface
   156     void conceal_error_for_next_buffer(DevSoundWrapper *handle);
   151     void conceal_error_for_next_buffer(DevSoundWrapper *handle);
   157     void set_framemode(DevSoundWrapper *handle,gboolean mode);
   152     void set_framemode(DevSoundWrapper *handle,gboolean mode);
   158     int framemode_rqrd_for_ec(DevSoundWrapper *handle,gboolean* modereq);
   153     int framemode_rqrd_for_ec(DevSoundWrapper *handle,gboolean* modereq);
   178 	void populateproperties(GstDevsoundSink *ds);
   173 	void populateproperties(GstDevsoundSink *ds);
   179     void initproperties(GstDevsoundSink* ds);
   174     void initproperties(GstDevsoundSink* ds);
   180 	int pre_init_setconf(GstDevsoundSink *ds);
   175 	int pre_init_setconf(GstDevsoundSink *ds);
   181 	void getsupporteddatatypes(GstDevsoundSink *ds);
   176 	void getsupporteddatatypes(GstDevsoundSink *ds);
   182 
   177 
       
   178 
   183 #ifdef __cplusplus
   179 #ifdef __cplusplus
   184 }//extern c
   180 }//extern c
   185 #endif
   181 #endif