[directmusic] Re: Exporting Audio using DirectMusic API

  • From: "Scott Morgan" <scott@xxxxxxxxxxxxxxxxx>
  • To: <directmusic@xxxxxxxxxxxxx>
  • Date: Wed, 16 Jun 2004 11:08:44 -0700

What about the file output DMO that shows up in Producer?  Can he use that?

-Scott Morgan

-----Original Message-----
From: directmusic-bounce@xxxxxxxxxxxxx
[mailto:directmusic-bounce@xxxxxxxxxxxxx]On Behalf Of James Dooley
Sent: Tuesday, June 15, 2004 5:02 PM
To: directmusic@xxxxxxxxxxxxx
Subject: [directmusic] Re: Exporting Audio using DirectMusic API

You are correct that this is not a trivial task.  I can think of two
ways to do this:
1) Using DirectMusic 8 or 9 interfaces, create a DMO that writes the
data it sees to a WAV file (or passes it on to another component that
writes the WAV file).  Then, either author a custom audiopath using your
DMO in DirectMusic Producer, or use IDirectSoundBuffer8::SetFX to put
your DMO in a DirectSound buffer directly.
2) Initialize the performance with IDirectMusicPerformance::Init() to
use the DirectMusic 7.0 synthesizer and enable use of the
IDirectMusicSynthSink interface.


Note that the comment "To capture output from the later version of the
synthesizer, you must implement a DMO on the primary buffer" is wrong.
The primary buffer isn't used with WDM devices, so you need to implement
a DMO on every buffer in your audiopath (or implement your DMO on a
mixin buffer, have every other buffer send to that one mixin buffer, and
mute all the other buffers).


This posting is provided "AS IS" with no warranties, and confers no

-----Original Message-----
From: directmusic-bounce@xxxxxxxxxxxxx
[mailto:directmusic-bounce@xxxxxxxxxxxxx] On Behalf Of Abhijit Patait
Sent: Tuesday, June 15, 2004 4:44 PM
To: directmusic@xxxxxxxxxxxxx
Subject: [directmusic] Re: Exporting Audio using DirectMusic API

Since I haven't received any response on this, I assume that this is not
a trivial task. However, has someone on this group done anything similar
before (may be without using DirectX/DirectMusic)? If so, what should I
look for? I wandered (literally) through the DirectX documentation on
MSDN and elsewhere but could not find any useful information. All I can
guess is I have to use DirectSound, IDirectSoundBuffer8,
IDrectMusicSynth or some combination of the above.
Any pointers will be greatly useful.
Thank you
Abhijit Patait <abhijit_patait@xxxxxxxxx> wrote:
With a lot of help from people on this list, I have finally gotten my
little sequencer application to make sounds as I want it to, using
custom DLS instruments.

My next objective is to export the audio as a WAV file from my sequencer
application. I can easily create a MIDI file. But is there an API to
access the samples generated by the synthesizer and save them as WAV
file (especially since the instruments I am using are from custom DLS)?

Thanks again for you help.


Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger

Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

Other related posts: