언어 설정

Menu
Sites
Language
Unable to Play .wav file with sample rate of 16000

I tried playing the .wav file and it throws an error as invalid format.

But when I am playing the sample wave file provided by Tizen samples it is able to play.

I have no idea what is exactly going wrong.

There's no attachement option to attach the .wav file. 

Sending the log output.

Thanks

Multi Play Log Output When replaced Sample .wav file with "JAWTBF01.wav" file

------------------------------------------------------------------------------------------

 

03-19 14:30:38.140 : INFO / Audio ( 2264 : 2264 ) : result MultiPlayForm::CreatePlayerInstance(int) (276). > end index = 3
03-19 14:30:38.140 : INFO / Audio ( 2264 : 2264 ) : virtual void MultiPlayForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView &, int, int, Tizen::Ui::Controls::ListItemStatus) (894). > end index = 3 and __nTotalPlayCount = 1
03-19 14:30:38.140 : ERROR / Tizen::Base::Runtime ( 2264 : 2264 ) : result Tizen::Base::Runtime::_TimerImpl::Cancel() (239). > [E_INVALID_STATE] Timer is not started.
03-19 14:30:38.140 : ERROR / Tizen::Base::Runtime ( 2264 : 2264 ) : result Tizen::Base::Runtime::Timer::Cancel() (93). > [E_INVALID_STATE] Failed to cancel a timer.
03-19 14:30:38.140 : ERROR / Audio ( 2264 : 2264 ) : result Tizen::Base::Collection::__HashMapEnumeratorT<KeyType, ValueType>::MoveNext() [with KeyType = Tizen::Ui::_TouchGestureDetector*, ValueType = Tizen::Ui::_TouchGestureDetectorState, result = long unsigned int] (1195). > [E_INVALID_OPERATION] The source collection is modified after the creation of this enumerator.
03-19 14:30:38.140 : ERROR / Audio ( 2264 : 2264 ) : result Tizen::Base::Collection::__HashMapEnumeratorT<KeyType, ValueType>::MoveNext() [with KeyType = Tizen::Ui::_TouchGestureDetector*, ValueType = Tizen::Ui::_TouchGestureDetectorState, result = long unsigned int] (1195). > [E_INVALID_OPERATION] The source collection is modified after the creation of this enumerator.
03-19 14:30:38.250 : INFO / Audio ( 2264 : 2264 ) : virtual void MultiPlayForm::OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason) (553). >  MultiPlayForm::OnPlayerErrorOccurred 
03-19 14:30:38.250 : INFO / Audio ( 2264 : 2264 ) : Tizen::Base::String AppConfig::GetString(const Tizen::Base::String &, const Tizen::Base::String &) const (188). > before sectString is MultiPlay, entryString is srcfile3
03-19 14:30:38.430 : INFO / Audio ( 2264 : 2264 ) : virtual void MultiPlayForm::OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason) (553). >  MultiPlayForm::OnPlayerErrorOccurred 
03-19 14:30:38.430 : INFO / Audio ( 2264 : 2264 ) : Tizen::Base::String AppConfig::GetString(const Tizen::Base::String &, const Tizen::Base::String &) const (188). > before sectString is MultiPlay, entryString is srcfile3
 
 
 
 
 
 
 
 
 
 
Simple Player Log Output

------------------------------------------------------------------------------------------

 
03-19 14:44:09.850 : INFO / Audio ( 2306 : 2306 ) : Tizen::Base::String AppConfig::GetString(const Tizen::Base::String &, const Tizen::Base::String &) const (188). > before sectString is MediaPlayer, entryString is srcfile0
03-19 14:44:09.850 : INFO / Audio ( 2306 : 2306 ) : result PlayerForm::OpenSource(Tizen::Base::String) (808). > __filePath:/opt/apps/wVJMIIDeaW/res/Audio/JAWTBF01.wav
03-19 14:44:10.870 : ERROR / Tizen::Graphics ( 2306 : 2306 ) : result Tizen::Graphics::_BitmapImpl::Construct(const Tizen::Graphics::_CanvasImpl&, const Tizen::Graphics::Rectangle&) (403). > [E_INVALID_ARG] Both of width(0) and height(0) of 'rect' MUST be greater than 0.
03-19 14:44:10.870 : ERROR / Tizen::Graphics ( 2306 : 2306 ) : result Tizen::Graphics::Bitmap::Construct(const Tizen::Graphics::Canvas&, const Tizen::Graphics::Rectangle&) (109). > [E_INVALID_ARG] Propagating.
03-19 14:44:10.960 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (525). > Enter 
03-19 14:44:10.960 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (576). > End 
03-19 14:44:10.960 : INFO / Audio ( 2306 : 2306 ) : result PlayerForm::GetFilePathFromConfig() (336). > EXIT
03-19 14:44:10.960 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (525). > Enter 
03-19 14:44:10.960 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (576). > End 
03-19 14:44:10.960 : ERROR / Audio ( 2306 : 2306 ) : result Tizen::Base::Collection::__HashMapEnumeratorT<KeyType, ValueType>::MoveNext() [with KeyType = Tizen::Ui::_TouchGestureDetector*, ValueType = Tizen::Ui::_TouchGestureDetectorState, result = long unsigned int] (1195). > [E_INVALID_OPERATION] The source collection is modified after the creation of this enumerator.
03-19 14:44:10.970 : ERROR / Tizen::Graphics ( 2306 : 2306 ) : result Tizen::Graphics::_BitmapImpl::Construct(const Tizen::Graphics::_CanvasImpl&, const Tizen::Graphics::Rectangle&) (403). > [E_INVALID_ARG] Both of width(0) and height(0) of 'rect' MUST be greater than 0.
03-19 14:44:10.970 : ERROR / Tizen::Graphics ( 2306 : 2306 ) : result Tizen::Graphics::Bitmap::Construct(const Tizen::Graphics::Canvas&, const Tizen::Graphics::Rectangle&) (109). > [E_INVALID_ARG] Propagating.
03-19 14:44:11.090 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (525). > Enter 
03-19 14:44:11.090 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (576). > End 
03-19 14:44:11.090 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::RefreshButtonTexts() (427). > Enter 
03-19 14:44:11.090 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::RefreshButtonTexts() (442). > opened
03-19 14:44:11.090 : ERROR / Tizen::Graphics ( 2306 : 2306 ) : result Tizen::Graphics::_BitmapImpl::Construct(const Tizen::Graphics::_CanvasImpl&, const Tizen::Graphics::Rectangle&) (403). > [E_INVALID_ARG] Both of width(0) and height(0) of 'rect' MUST be greater than 0.
03-19 14:44:11.110 : ERROR / Tizen::Graphics ( 2306 : 2306 ) : result Tizen::Graphics::Bitmap::Construct(const Tizen::Graphics::Canvas&, const Tizen::Graphics::Rectangle&) (109). > [E_INVALID_ARG] Propagating.
03-19 14:44:11.110 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::RefreshButtonTexts() (476). > end 
03-19 14:44:11.110 : INFO / Audio ( 2306 : 2306 ) : virtual void PlayerForm::OnPlayerErrorOccurred(Tizen::Media::PlayerErrorReason) (1056). > PLAYER_ERROR_INVALID_DATA
03-19 14:44:11.110 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (525). > Enter 
03-19 14:44:11.110 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (576). > End 
03-19 14:44:11.190 : INFO / Audio ( 2306 : 2306 ) : void PlayerForm::DisplayStatusMessage(const Tizen::Base::String &) (525). > Enter 
 
Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 댓글
wil smith
Error code “PLAYER_ERROR_INVALID_DATA” indicates the data in your audio file is invalid, possibly corrupted or format is unsupported. Check the mediacapability of your device/emualtor to ensure if it is of supported format. Have a comparison of metadata of audio file, the ones playable and none-playable. This may give you the clue about what’s wrong with the audio file. May be you can upload your audio file to some website and share the link here for Tizen experts’ advice :)