Rockbox Development > Starting Development and Compiling
How to play a WAVE file in Plugin? How to use PCM_PLAY_DATA? Thank u in advance
gnu:
If you only want the wave files for rockbox plugins, you can save them as "RAW 16bit PCM" with Audacity. Then you don't need to strip the header.
timevision:
Hi guys,
When I use BUFOPEN function in PLUGIN.H, it needs a data_type, to open & store it more efficiently I suppose. Just wondering what is the difference between the different kinds:
enum data_type {
TYPE_CODEC,
TYPE_PACKET_AUDIO,
TYPE_ATOMIC_AUDIO,
TYPE_ID3,
TYPE_CUESHEET,
TYPE_BITMAP,
TYPE_BUFFER,
TYPE_UNKNOWN,
};
I'm only using it to open small WAVE files, maybe maximum 1MB in size. Should I use TYPE_PACKET_AUDIO, or just TYPE_BUFFER or... ?
Thanks.
Navigation
[0] Message Index
[*] Previous page
Go to full version