Languages

Menu
Sites
Language
Loading MP3 with AudioDecoder

I'm trying to load mp3 file with AudioDecoder, but every time Probe() method returns E_UNSUPPORTED_FORMAT error. I am sure that I correctly skipped ID3 tag. I even tried to load mp3 at any point in the file. I also tried many mp3 files.

Is mp3 supported in Native Tizen?

Responses

2 Replies
hgw7

MP3 format is supported. The Decode() fails for the last frame, but Probe() api should return E_SUCCESS if the source buffer is loaded correctly. 

 

Alex Dem

Hi,
At minimum test.mp3 from Sample->mediaApp is decoded successfully
Maybe you have missed codec type in dec.Construct(CODEC_MP3);

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apireference%2FclassTizen_1_1Media_1_1AudioDecoder.html

But there is another problem was observed during decoding. Second attempt to use the same AudioDecoder object was not success. Looks like AudioDecoder ::Reset() method does not work:
https://developer.tizen.org/forums/native-application-development/using-audiodecoder-load-audio-assets
Alexey.