Firelight Technologies FMOD Studio API
Play Stream Example
This example shows how to simply play a stream such as an MP3 or WAV. The stream behaviour is achieved by specifying FMOD_CREATESTREAM in the call to System::createSound. This makes FMOD decode the file in realtime as it plays, instead of loading it all at once which uses far less memory in exchange for a small runtime CPU hit.
Location
The example is located at api/lowlevel/examples/play_stream.cpp.