Page 1 of 1

One way for MIDI...

Posted: Sun Aug 31, 2003 9:18 am
by Skipsy
Hi folks,

I use PlayMovie to play MIDI music :

Code: Select all

If LoadMovie( #MUSIC, ".\snds\music.mid") = 0
  MessageRequester("Error", "Error opening: popcorn.mid", 0) 
EndIf

PlayMovie( #MUSIC, ScreenID() )
My understanding is that I am using Windoz movie player just for music.
It sounds like a "brute" way...
As music is playing during my game is running I am afraid it could
slow it down (?)

Do you know a cleanner way to play MIDI file ? I have had look in the
previously posted questions but found out nothing (that I understand)
:oops:

Thks guys,

Posted: Sun Aug 31, 2003 9:33 am
by GPI
in the IncludePack1 for jaPBe you find a MIDI.PBI.

Try this.

GPI

Posted: Sun Aug 31, 2003 4:00 pm
by Skipsy
That pack is MAGIC !!!

I read it uses MCI...what about compatility with different windows
versions (MCI prerequisites)

Great job, thanks.

Posted: Sun Aug 31, 2003 4:52 pm
by GPI
Skipsy wrote:That pack is MAGIC !!!

I read it uses MCI...what about compatility with different windows
versions (MCI prerequisites)

Great job, thanks.
Should work on Win98SE and XP.

btw: When you need to change to volume, you should try the VolumeMute.pbi, but don't forget to reset the volume to the old value.

p.s.: With jaPBe, you can "link" the include in the compiler-options.

Posted: Mon Sep 08, 2003 9:33 pm
by Ralf
really nice pack. is there any way to catch a midi without saving a file to disk/hd and play it direct from memory location. "PlayMidi(?label)" !?

Posted: Mon Sep 08, 2003 9:46 pm
by GPI
Sorry, don't found a mci-command for this...

But you can depack the mid in the temp-folder...

(include system.pbi)

Code: Select all

path$=CreateTempDirectory ()

.
.
.

DeleteDirectory(path$,"*.*",#PB_FileSystem_Recursive|#PB_FileSystem_Force)