 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mark Overmars Guest
|
Posted: Mon Aug 18, 2003 6:32 am Post subject: Playing MIDI files from memory |
|
|
In my program I have to deal with a number of MIDI files and play them. The
MIDI files are stored in memory streams though. At the moment I first save
them to a file and then use the Media Player component to play them but this
results in a clear interuption because of the saving and loading of the
files.
So here is my question: How do I play MIDI files directy from a memory
stream. Can I use the mediaplayer component for this, or the MCI interface,
or do I have to do something else? (I do not want to use anything based on
DirectX version higher than 6 because of other compatibility issues, so e.g.
no DirectMusic at the moment.)
Help would be very much appreciated.
Mark Overmars
|
|
| Back to top |
|
 |
Ignacio Vazquez Guest
|
Posted: Mon Aug 18, 2003 2:06 pm Post subject: Re: Playing MIDI files from memory |
|
|
"Mark Overmars" <markov (AT) cs (DOT) uu.nl> wrote in message
[email]3f40730c (AT) newsgroups (DOT) borland.com[/email]...
| Quote: | So here is my question: How do I play MIDI files directy from a memory
stream. Can I use the mediaplayer component for this, or the MCI
interface, or do I have to do something else?
|
Use the low-level MIDI API functions in mmsystem.dll
ms-help://MS.PSDK.1033/multimed/midi_1wv3.htm
http://www.microsoft.com/msdownload/platformsdk/sdkupdate
Cheers,
Ignacio
--
No, don't send me e-mail directly. No, just don't.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|