Search code examples
c++mp3pocketpc

Play an mp3 on a Pocket PC with VSC++ code


Does anyone know of some mp3 playing code for the pocket PC.
I have 3 mp3s that I want to play when my application loads up, depending on how you log in.

I've used VS2005 C++ to code what I've got now.

I think code to play mp3 for the desk might do the job. But I might not have access to the library, that's why I've been specific.


Solution

  • You can use DirectShow. Here is an example (it plays a video file, but exactly the same code will work for audio). Unfortunately, Windows Mobile lacks a suitable splitter to decode plain .mp3 files, but there is a workaround: you can add a RIFF header to your MP3s (producing MPEG-compressed WAV files).