Advertisement
5_2007-2008 Sound/MP3 #191563

Stream MP3/WMA from resources

This shows how to play MP3s and WMAs directly from resources without writing them to disk first. For decoding it uses the functions of the Windows Media Format SDK v9, wich ships with all Windows Media Players >= v9 (or google for "wmfdist.exe"). It allocates some memory, copies the sound from the resource to that memory, and plays it using DirectSound. You can control volume, balance and position. As the DirectSound stream uses an Windows API timer, debugging is pretty hard. You might be better off if you put the whole playback stuff into a DLL.

AI

KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Quellcode
original-source
Upload
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine