Rockbox Development > Starting Development and Compiling
mp3_play_data - for archos only?
(1/1)
slecta:
hello everyone, i'm trying to play an mp3 thru a plugin. for a couple of days i've been hacking away at it, using mp3_play_data, but i think i just found out that's for archos only -
i want to make a build for a sansa, do i use pcm_play_data? and if so, can i send mp3 data directly to the pcm_play_data, or does it need to be uncompressed first (and how)?
any help would be massively appreciated, i'm losing my mind here.
thanks
Vchat20:
Yes, the archos is the only player that has a hardware chip that can do direct mp3 decoding and playback. All other rockbox players do this in software much like a desktop media player.
You would need to decode the mp3 file first which would be decompressed to PCM data which you can then feed to pcm_play_data. I dunno if it is possible to call the mp3 codec used by the main playback function in rockbox or you would need to write your own. Someone else more knowledgeable should be able to answer this.
Navigation
[0] Message Index
Go to full version