VOGONS


First post, by hitsware

User metadata
Rank Newbie
Rank
Newbie

I have accidently found that with DosBox my MPU-401 is @ 888(dec)
(This usually the LPT-1 address, 816(dec)should be for MPU-401)
To write to the OPL-3, I have always (with Dos and QBasic) used
904(dec(register address)) and 905(dec(data))
I can't find a set of addresses to get the OPL-3 to respond 🙁
Or a way to set the addresses ? Either would be fine........
Thank You........

http://www.youtube.com/watch?v=xZmfCYr8mwA

Reply 1 of 13, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The only way to change the ports is to change the DOSBox source code.

MPU-401 = 0x330
Disney/Covox = 0x378
OPL2 = 0x388 - 0x389
OPL3 = 0x388 - 0x38B

Most games have no trouble using the emulated devices at these ports. Perhaps you are not seeing expected responses because you are making assumptions about the initial state of the devices that don't hold true in DOSBox, and you need to look into proper initialization procedures.

Reply 2 of 13, by hitsware

User metadata
Rank Newbie
Rank
Newbie

> you need to look into proper initialization procedures

Would you please elaborate ?
What would put my MPU-401 @ 378 which is (on original dos) LPT-1
Is this something in the config file ?

http://www.youtube.com/watch?v=xZmfCYr8mwA

Reply 3 of 13, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

If you're using official DOSBox, the devices are at the ports I listed and the ports can't be changed, end of story. If you're using unofficial DOSBox, anything can happen. Are you sure you're not just mistaking the emulated Disney/Covox device for the emulated MPU-401?

Reply 4 of 13, by hitsware

User metadata
Rank Newbie
Rank
Newbie

http://sourceforge.net/projects/dosbox/files/ … er.exe/download
Above is where I got it (direct link)
With VDM I get midi out @ h330
but not with DOSBox
You're right , @ h378 I was getting
just noise (I fed it random numbers fast)
When I use the same code as VDM @ h330
I get nothing ......... So I'm simply not getting
any response (except probably @ the printer
port (h378(where the Covox would be)))

http://www.youtube.com/watch?v=xZmfCYr8mwA

Reply 5 of 13, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Sounds like you should change the mpu401=intelligent setting to mpu401=uart, or write command 0x3f to switch to UART mode (as games do), because DOSBox emulates an MPU-401 in intelligent mode by default.

Reply 6 of 13, by hitsware

User metadata
Rank Newbie
Rank
Newbie

still no work .........
but vdm does (for mpu401) anyways
I thought I read that dosbox had incorperated vdm ?

http://www.youtube.com/watch?v=xZmfCYr8mwA

Reply 7 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

maybe your code is bugged ?
Our mpu works with almost every game out there, most professional audio stuff works as well with it.

Water flows down the stream
How to ask questions the smart way!

Reply 8 of 13, by hitsware

User metadata
Rank Newbie
Rank
Newbie

> maybe your code is bugged ?
Maybe........It works on Dos and VDM though.
The SOUND command works with DOSBox.
How do I get to the mixer ?
Maybe it's turned down .........

http://www.youtube.com/watch?v=xZmfCYr8mwA

Reply 9 of 13, by Joey_sw

User metadata
Rank Oldbie
Rank
Oldbie

is the following config is correct on stock-build dosbox 0.74?

[speaker]
disney=true

Under 0.74 or 0.73, i tried use mixer command but it doesn't shows DISNEY channel,
however, it does show DISNEY on dosbox 0.72, using the same config file.

I also happen to have a 'demo' groups greeting program,
which play an encrypted .MOD with some animation.
(Update: the .MOD file apparently "Hypnautic II" by Roman Lorenz)

The program will ask user which channel be used for music output
[1] - Soundblaster
[2] - Covox Card
[3] - Speaker

Option 1 or 3, will output the music, but option 2 just silent,
happens both on dosbox 0.72, 0.73 & 0.74

I could upload the greeting program, if necessery.

-fffuuu

Reply 10 of 13, by hitsware

User metadata
Rank Newbie
Rank
Newbie

There's nothing worse than not having
the Disney Channel ....... 😀

http://www.youtube.com/watch?v=xZmfCYr8mwA

Reply 11 of 13, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author
Joey_sw wrote:

Under 0.74 or 0.73, i tried use mixer command but it doesn't shows DISNEY channel,
however, it does show DISNEY on dosbox 0.72, using the same config file.

A change was made to disney.cpp in revision 3180 causing the mixer object to exist only while the Disney device is active. This means that the mixer channel is usually not available for volume changes with the MIXER command. Perhaps the devs remember whether or not the loss of the volume changing capability was a known side-effect of the change.

Joey_sw wrote:

I also happen to have a 'demo' groups greeting program,
which play an encrypted .MOD with some animation.

I'm guessing it's the Digital Dream cracktro by The Dream Team, or some variant, yes?

Joey_sw wrote:

Option 1 or 3, will output the music, but option 2 just silent,
happens both on dosbox 0.72, 0.73 & 0.74

If it's the cracktro mentioned above, it is hard-coded to use port 0x2cf for the Covox, which seems rather unusual. If you decompress the executable and modify it to use port 0x378, the sound works in DOSBox with the Covox option.

Reply 12 of 13, by Joey_sw

User metadata
Rank Oldbie
Rank
Oldbie

yes its digital dream, TDT's cracktro alright.
i used to collect various demos like that...

Update: Same .mod , slightly different .exe than what i've.
now i'm looking a way to decompressing PK-Lited exe.

Update 2: found the unpacker: http://users.tbc.net/~clive/vcomwinp.html

Patching unpacked also successful:
c7 06 84 f1 cf 02 80 3e ee f1 33
into
c7 06 84 f1 78 03 80 3e ee f1 33

thats makes covox output works on dosbox 0.72 - 0.74.
Thanks for the information, ripsaw8080.

Covox/Disney volume mixer, indeed doesn't works on dosbox 0.73 - 0.74 .

Last edited by Joey_sw on 2012-07-21, 05:32. Edited 1 time in total.

-fffuuu

Reply 13 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author
ripsaw8080 wrote:
Joey_sw wrote:

Under 0.74 or 0.73, i tried use mixer command but it doesn't shows DISNEY channel,
however, it does show DISNEY on dosbox 0.72, using the same config file.

A change was made to disney.cpp in revision 3180 causing the mixer object to exist only while the Disney device is active. This means that the mixer channel is usually not available for volume changes with the MIXER command. Perhaps the devs remember whether or not the loss of the volume changing capability was a known side-effect of the change.

The loss of mixer control is not intentional. Seems to be caused by the variable rate code.

Water flows down the stream
How to ask questions the smart way!