Simplest way to play mp3 from Visual C++

前端 未结 6 1912
星月不相逢
星月不相逢 2020-12-31 20:04

A few years back, I wrote some util library around DShow/DSound to let me play MP3s in a Windows C++ application. Is that still the normal way to do it in a C++/MFC app, or

6条回答
  •  借酒劲吻你
    2020-12-31 20:45

    Youc could use MCI windows functions, https://msdn.microsoft.com/en-us/library/ms709626

    It can play many of audio file formats including MP3, WAV, MIDI etc.

    If I recall correctly it does not require DirectX.

    The PlaySound function might also work for you.

提交回复
热议问题