[size:20pt]Playing Non-Midi music using standard object[/size]
Hello, everybody. I wrote this article, because many of you using DirectShow, or something to play non-midi music. But you not have to! I in this simple tutorial will show you how to play music using standard sound object and this will not MID music!
[size:17pt]First create new project![/size]
Of course you must create new project to use this hint (or you can use your actually game project, but I don't recommend you that. Because you can destroy you project by accident). So click the button. Click two times on frame to open it, and go to event editor.
Add event. Click using right mouse button in 's column and select .
We have no samples (actually music files ) in our game, so we click button in section. We select file (Note about supporting formats: MMF 2 in standard sound object supports following formats:
Tracker music: .mod, .xm, .it, .s3m
"Normal" formats: .aif/.aiff, .wav, .ogg
If you have mp3 music, you can convert it to ogg vorbis - it have better compression level with better quality. If you have other tracker music you have to use ModFX 3 ModFusion e.
So we selected a music file. Now we must select the channel from range 1-32. For music I use 5, but you can use another. Now we add event and we choose THE SAME channel number, what we used for music. Now we copying 's action from previous event.
We should have something like this in event editor:
If you make all with the instructions the music should playing in infinite loop.