| Mirage Source http://miragesource.net/forums/ |
|
| Fixed music http://miragesource.net/forums/viewtopic.php?f=210&t=1285 |
Page 1 of 2 |
| Author: | Robin [ Thu Feb 01, 2007 10:54 pm ] |
| Post subject: | Fixed music |
Shan fucked it up. <3 Shan. Quote: Public Sub PlayMidi(Song As String)
'**************************************************************** '* WHEN WHO WHAT '* ---- --- ---- '* 07/12/2005 Shannara Added music constant. '* 02/01/2007 Robin Un-fucked it D: '**************************************************************** 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 You missed out four characters *slaps* |
|
| Author: | DarkX [ Thu Feb 01, 2007 11:14 pm ] |
| Post subject: | |
Thank you Kite, I knew I wasn't crazy. |
|
| Author: | Verrigan [ Thu Feb 01, 2007 11:14 pm ] |
| Post subject: | |
Can't you do anything politely? Your parents must be so proud of you. [Moved] |
|
| Author: | Robin [ Thu Feb 01, 2007 11:42 pm ] |
| Post subject: | |
I think it's just silly that the source has been around for two years and no one has posted a fix nor did anyone test the source properly. I only had a look because Aydan couldn't get it working. |
|
| Author: | Verrigan [ Thu Feb 01, 2007 11:47 pm ] |
| Post subject: | |
I think most people who get far enough to use sound choose a different method. |
|
| Author: | DarkX [ Thu Feb 01, 2007 11:56 pm ] |
| Post subject: | |
And on top of that when running the client side of the engine, (In VB test) the sound doesn't shut off until you close VBStudio. |
|
| Author: | Robin [ Fri Feb 02, 2007 12:11 am ] |
| Post subject: | |
goto gamedestroy add stopmidi |
|
| Author: | DarkX [ Fri Feb 02, 2007 12:13 am ] |
| Post subject: | |
you left that part out. |
|
| Author: | Robin [ Fri Feb 02, 2007 5:45 pm ] |
| Post subject: | |
*slaps* Was my tutorial designed to help you stop music? No. It was designed to start the music in the first place. Anyone who can't figure how to stop it when the game ends is a moron. All the code is already there! |
|
| Author: | Matt [ Fri Feb 02, 2007 9:34 pm ] |
| Post subject: | |
I don't use MSE-1. I use 303, but I'd like to just point out that music works fine in 303. So, one of Shan's optimizations or something screwed it up. =P No offense Shan. Haha. |
|
| Author: | Robin [ Fri Feb 02, 2007 10:33 pm ] |
| Post subject: | |
I did point that out >.> He simply forgot to add four quotation marks the the line of code, so it knows it's getting the full location, rather than a file in the same folder as the .exe. |
|
| Author: | Misunderstood [ Sat Feb 03, 2007 12:22 am ] |
| Post subject: | |
Shan messed something up? Does that mean hes human? Damn... I always thought he was a god. There goes my faith |
|
| Author: | Robin [ Sat Feb 03, 2007 12:28 am ] |
| Post subject: | |
People make mistakes I know... but surely someone noticed that the music wasn't working? =\ |
|
| Author: | Rian [ Sat Feb 03, 2007 12:51 am ] |
| Post subject: | |
I'm sure I would have noticed if I used MSE. I mean, I think there is still a module called modSound. So even if the music didn't work, I'm sure I would have noticed that there was at least some sort of intended music to be operational. |
|
| Author: | Xlithan [ Sat Feb 03, 2007 5:23 am ] |
| Post subject: | |
Jeez... It's open source, if more than 15% of people on here were actually any good at visual basic programming you'd be able to fix it yourself, that's the point of open source. We're not here to do everything for you. |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|