| Mirage Source http://miragesource.net/forums/ |
|
| Audio Trouble http://miragesource.net/forums/viewtopic.php?f=210&t=1143 |
Page 1 of 1 |
| Author: | DarkX [ Thu Jan 11, 2007 7:28 pm ] |
| Post subject: | Audio Trouble |
I have a question, as you know I have been modifing a copy of MSE for sometime now, but I haven't done anything involving audio but the sound doesn't work on my engine. It has been that way since I started programming it, but I thought that it might be something with my computer. But I got yet another new one and there is no change, could someone help me with this little problem. Thanks in advance, Korrey D. |
|
| Author: | William [ Thu Jan 11, 2007 8:23 pm ] |
| Post subject: | |
I believe it works in MSE, so I suggest you compare your source with a unedited MSE, shouldn't take too long. |
|
| Author: | DarkX [ Wed Jan 24, 2007 4:50 pm ] |
| Post subject: | |
I tried my modified one and a scrap model, and the audio doesn't work. Could someone point out to me where the jist of the code to play audio is? |
|
| Author: | William [ Wed Jan 24, 2007 5:41 pm ] |
| Post subject: | |
Code: Public Sub PlayMidi(Song As String)
'**************************************************************** '* WHEN WHO WHAT '* ---- --- ---- '* 07/12/2005 Shannara Added music constant. '**************************************************************** Dim i As Long i = mciSendString("close all", 0, 0, 0) i = mciSendString("open " & App.Path & MUSIC_PATH & Song & " type sequencer alias background", 0, 0, 0) i = mciSendString("play background notify", 0, 0, frmMirage.hWnd) End Sub Public Sub StopMidi() Dim i As Long i = mciSendString("close all", 0, 0, 0) End Sub Public Sub PlaySound(Sound As String) '**************************************************************** '* WHEN WHO WHAT '* ---- --- ---- '* 07/12/2005 Shannara Added sound constant. '**************************************************************** Call sndPlaySound(App.Path & SOUND_PATH & Sound, SND_ASYNC Or SND_NOSTOP) End Sub |
|
| Author: | DarkX [ Wed Jan 24, 2007 5:43 pm ] |
| Post subject: | |
That's different than mine. |
|
| Author: | William [ Wed Jan 24, 2007 6:04 pm ] |
| Post subject: | |
That is a unedited MSE1. |
|
| Author: | Aydan [ Thu Jan 25, 2007 11:09 pm ] |
| Post subject: | |
I have a problem too. Mines exactly the same yet it doesnt work. somethings wrong lol =P |
|
| Author: | lordgivemick [ Sat Jan 27, 2007 12:48 am ] |
| Post subject: | |
could you plz post the code you have so i can check to see whats roung with it.and could you also tell me what type of music you are using midi,mp3,wmp,ect... |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|