how the music files are being handled in a game
-
i'm new to game programming so this would be a good knowledge. i would love to know: 1. how the music files are being handled in a game using c++? 2. how an array are used to encapsulate a sound buffer? 3. how the array is used to create a sound buffer? 4. how a pointer to DirectSound will be obtained? 5. how the class provide method how to load the sound data (*.wav or *.pcm or *.midi files)? Is there any article regrading this that might answer my question? pls help!!!
-
i'm new to game programming so this would be a good knowledge. i would love to know: 1. how the music files are being handled in a game using c++? 2. how an array are used to encapsulate a sound buffer? 3. how the array is used to create a sound buffer? 4. how a pointer to DirectSound will be obtained? 5. how the class provide method how to load the sound data (*.wav or *.pcm or *.midi files)? Is there any article regrading this that might answer my question? pls help!!!
There is sample code in the DirectX SDK to do all these things. If you need to ask 1 through 4, I wonder if you've even seen the SDK. Microsoft DirectX Downloads[^] Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: