How can I play .ogg, mp3, without Directsound libs in Windows CE 5.0 (Build 1400) in C #?

I came across a road block trying to include .ogg and .mp3 files in WinCE 5.0 (build 1400). Many of the answers found require some Directsound libraries that are no longer supported.

Is there a way to implement .ogg and .mp3 file playback on WinCE 5.0 without using Directsound libraries?

+4
source share
1 answer

In this situation, I would recommend taking a look at GSPlayer or TCPMP Player (open source software, C ++), you can use the code to create the dll. GSPlayer uses WaveOut internally, so don't worry about DirectSound. However, you will need to check the license and make sure that you are not violating it. After creating such a DLL, you can use it with p / invoke. If you are the OEM device of your target device, another option that excludes .ogg will add β€œManage Windows Media Player” on your sample OS and use it with C # as an ActiveX control. There is more information on how to do it here , here and here.

Update: In response to a similar question, it is recommended to use FMOD, although it is not free for commercial use, as indicated by @ mack369's comment.

+1
source

All Articles