[wdmaudiodev] Re: AW: Re: Virtual MIDI driver
- From: "Evert van der Poll" <evert@xxxxxxxxxxxxxxxxxxxxxxx>
- To: <wdmaudiodev@xxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 15:55:33 +0100
>>The DMUSUart sample for instance has no "adapter.cpp" - So at least
>>this part must be implemented or be taken & adapted from MPU401...
I had a look at the sample and apparently Microsoft changed it somewhat.
There used to be a version that created a PortMidi driver but that is gone
now. You can only create a PortDmus driver now.
To build the sample you must first build dmusuart and then build mpu401.
This will create a MIDI driver for an mpu-401 compatible port. The only
catch is: there is no .inf file for it. What you can do is study the .inf
file of another MIDI driver and then construct your own .inf file. That's
what I did.
>>So how does the OS distinguish between drivers that need to
>>be started based on PnP-events or started always?
In your drivers .inf file you tell the system to create a service with
StartType = 3. That means it will be started when the system boots. The OS
then calls the DriverEntry() function of your driver.
Study the adapter.cpp file from the sample to see how you go from there.
-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]On Behalf Of Tobias Erichsen
Sent: Tuesday, August 29, 2006 6:57 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] AW: Re: Virtual MIDI driver
> The best way to start is to use the DMUSUart sample as a
> basis. The MPU401 sample creates an older type of driver,
> with no DirectMusic support. You don't need to merge the samples.
The DMUSUart sample for instance has no "adapter.cpp" - So at least
this part must be implemented or be taken & adapted from MPU401...
> >>Is there anything special I need to put into the driver, that it is
> >>activated automatically - as my driver is virtual, having
> no hardware
> >>that's being activated by PnP. Or can I control this just with a
> >>properly written setup.inf?
>
> Nothing special needs to be done. The OS creates an instance
> of your driver when an application requires it.
So how does the OS distinguish between drivers that need to
be started based on PnP-events or started always?
Best regards,
Tobias
******************
WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/
- References:
- [wdmaudiodev] AW: Re: Virtual MIDI driver
- From: Tobias Erichsen
Other related posts:
- » [wdmaudiodev] AW: Re: Virtual MIDI driver
- » [wdmaudiodev] Re: AW: Re: Virtual MIDI driver
- » [wdmaudiodev] Re: AW: Re: Virtual MIDI driver
- [wdmaudiodev] AW: Re: Virtual MIDI driver
- From: Tobias Erichsen