Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Impulse Tracker + DOSEMU = sound \o/

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Impulse Tracker + DOSEMU = sound \o/
Bruce Perry
Member #270
April 2000

Guess what. Oh. You already guessed. Aww shucks.

Anyway. I managed to get Impulse Tracker working in DOSEMU, a DOS emulator for Linux (well more of a hardware emulator really). I had to make dosemu.bin suid root, and configure it to use the VGA stuff. I have to run it in a Linux console, not in X. Graphically, it now worked beautifully. With DOSEMU's default configuration, it detected an SB Pro, but wouldn't play anything.

Turns out all I needed to do to get the sound working was SET BLASTER=stuff. So now I get sound! Only 8-bit, I'm afraid, and that means no filters - but it's better than nothing. And I'm sure the DOSEMU crew are hard at work on the SB16 emulation ... ;)

In other words, YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY~! ;D

Just thought I'd post and let you all know that it is possible to get Impulse Tracker working in Linux. So I don't have to cope with a buggy Wine 'emulation' of ModPlug Tracker any more. Yay :D

Oh, and FT2 doesn't start because it doesn't detect a mouse - I haven't configured that yet. I'll edit/post later if I get that working. :)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Thomas Fjellstrom
Member #476
June 2000
avatar

Hey.. Maybe now I'll get off my lazy A$$ and compose something ;D (I have little didtties that run through my head... now weather you'll all shove me in an asylum... :o Please don't ;D)

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

kronoman
Member #2,911
November 2002
avatar

Well, happy for you!
I use Bochs all the time for similar purposes (aka: running old DOS apps that I use frequently)
Did you see my older screenshots of my desktop (the 'post desktop thread')?

I'm running Kyrandia, PCGlobe, etc.
In my opinion, Bochs is better that DOSEMU, because you emulate a total CPU, so you can not only emu DOS, but other OS too (pretty cool)
Try it:
[url http://bochs.sf.net/]

Bruce Perry
Member #270
April 2000

I did try Bochs. However, it's a lot harder to (safely!) make it use an existing hard disk, and because it does such total emulation it's a lot slower. I think it also crashed on me, or aborted for some reason, or something, when I tried to do anything interesting. I can't remember exactly what conclusion I came to, but it didn't work out.

Incidentally, Line Wars and Rock 'n' Spin (which were written for DOS only) work nicely, as does my DOS build of Sheep. My old QB games also work. Descent works but runs about three times too fast ;D

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

kronoman
Member #2,911
November 2002
avatar

I understand what you say, it cost me a lot to make it work 'safe'.
I'm a die hard fan of abandon games so I try every one that falls on my hands, and I use Bochs for that, altough some works weird or don't work at all...

Sirocco
Member #88
April 2000
avatar

sweeeeeeeeeeeeeeeeeeeeeeeeeeeet :)

Long live tracking! ^.^

-->
Graphic file formats used to fascinate me, but now I find them rather satanic.

Bruce Perry
Member #270
April 2000

Bad news I'm afraid: FT2 doesn't like the SB emulation. I can't get it to play; I click play and nothing happens. Oh well :-/

But DOSMUS, the music editor whose screenshot is featured here, works beautifully :D

[EDIT] Oh by the way, Fenix Blade works! ;D ;) No MIDI, but then I never get MIDI on Linux so there's not much point in trying to configure it for DOSEMU. ::)
[EDIT #2] Lemmings doesn't work. It makes DOSEMU abort with "General protection". :P

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Thomas Fjellstrom
Member #476
June 2000
avatar

Bah.. I can't even get Bochs to boot a floopy or a CDROM >:E

Oh well.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Peter Wang
Member #23
April 2000

Don't hold your breath waiting for better sound support in DOSEMU.

Korval
Member #1,538
September 2001
avatar

Does anyone know how to get IT working under WinXP?

Thomas Fjellstrom
Member #476
June 2000
avatar

I wouldnt hold your breath. Maybe try it under VMWare.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Bruce Perry
Member #270
April 2000

Peter: why?

Korval: does it successfully display an 80x50 text mode, with the extra column removed (so the chars are 8x8 instead of 9x8)? Does it then succeed in changing the VGA character bitmaps in order to display the mouse and all the pseudo-graphical bits of the interface? If all that isn't working is sound, then you should try VDMSound. If the 'graphics' doesn't work either, then you'll have to use a proper emulator - and I don't know how many / which emulators can do the odd VGA tweaks IT requires. Note that DOSEMU is allowing the genuine VGA-compatible hardware to do the work in my case.

Tomasu: VMware has three problems. Not free, not fast, and not very good at interacting with an existing system (same problem Bochs has - I don't want to create a hard disk image when I can use my existing Windows partition :P).

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Peter Wang
Member #23
April 2000

Don't wait because it seems like nothing has changed on that front for a long time.

jhuuskon
Member #302
April 2000
avatar

Heh. Under VDMSound in XP, starting up IT is a bit tricky. The shortcut VDMS Launchpad makes for it starts at a normal console box, but you have to switch to fullscreen mode at a very precise moment if you want to see the sample waveforms or the instrument volume/pan/pitch/filter graphs. If switched too soon, it'll look perfect but work very sluggish & sound choppy. Too late and the runtime-generated graphics won't work. (evil textmode graphics hack! >:()

Korval: Get the VDMS Launchpad too. Using VDMS without it is pain at it's purest.

You don't deserve my sig.

Thomas Fjellstrom
Member #476
June 2000
avatar

Duh.. Ofcourse VMWare has the same problems as Bochs.. Know what bochs used to be called? FreeMWare ::)

Too bad its an entire System. You really won't get what you want unless you do it your self.. :( Its like running 1 OS on two different machines.. Thats bound NOT to work very well or at all.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Sirocco
Member #88
April 2000
avatar

Quote:

[EDIT] Oh by the way, Fenix Blade works! ;D ;) No MIDI, but then I never get MIDI on Linux so there's not much point in trying to configure it for DOSEMU.

Again, sweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet!

-->
Graphic file formats used to fascinate me, but now I find them rather satanic.

MiquelFire
Member #3,110
January 2003
avatar

Fenix Blade, the program to test DOS stuff with ;)

[edit] To make my statement clearer, I mean if you can't get Felix Blade to work, you might as well find a better DOS (shell)

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

miran
Member #2,407
June 2002

Quote:

Does anyone know how to get IT working under WinXP?

I just got it working with VDMSound :D There are a few things you have to be carefull about though. First make a normal shortcut like the manual says. Then disable everything IT doesn't need, leave only EMS memory and SB16 emulation. Under SB16 select your sound card's wave driver (as opposed to the DirectX one) and set the buffer size as low as possible to get the lowest possible latency. You need to experiment with this a little, I set it to 25ms, any lower than that and the sound stutters. Also set the minimum DMA delay to something like 2 or something and enable the CPU usage thingy checkbox. And finaly enable VESA support. This will make IT run fullscreen instead of in a window which is very important as otherwise some things won't show up as jhuuskon already said. Anyway, IT now works perfectly for me, the only thing that doesn't work is the MMX driver. It's recognized but I get no sound :(

--
sig used to be here

Bruce Perry
Member #270
April 2000

Meanwhile I've been hacking at DOSEMU trying to implement SB16 support. So far I've got it so that ITSB16.DRV makes some evil noises (and if I output the 'audio' data to a file I find fragments of text and such), and ITSB16.MMX generates silence. With both, IT proceeds through the pattern data at half speed. So I'm still struggling with that.

The good news is I haven't broken the SB Pro support yet ;D

[EDIT]
Yay. More good news. ITSB16.DRV and ITSB16.MMX both work now, except it's still half the speed it should be. But at least it's music. Line Wars and other Allegro games work fine, and they play stuff at the right speed - as do my QB programs. No change in FT2, I'm afraid - it still doesn't work. The half speed bug with IT will be fixed shortly, except I might not manage to find out exactly where to apply the fix. Still, the troublesome cases should be pretty unusual ones. Recording has hardly been looked at, so that will probably return garbage or silence depending on the weather. ;D

Would someone be willing to try FT2 with VDMSound and let us know if it works? If it does, then I can start stealing code. ;)

[EDIT #2]
Impulse Tracker now works beautifully. The only slight problem is that IT generates a 45454 Hz stream but the OSS set-up on my computer rounds it to 44100 Hz, so it plays slightly slower and lower pitch than it should. But still, it works, and I get filters. One less reason to boot to Windows. Yay! ;D

I shall get some food, after which I'll probably upload a patch for DOSEMU if I'm not too tired.

Oh, and thanks Matt 8-)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Matt Smith
Member #783
November 2000

BUMP

contractual obligations discharged (/me pockets fiver) 8-)

Bruce Perry
Member #270
April 2000

SB16 PATCH FOR DOSEMU IS HERE :D :D :D :D ;D ;D ;D ;D ;D;D:P

So now you too can get filters with Impulse Tracker in Linux. ;)

But I'd still like to know whether FT2 works in VDMSound, if anyone's willing to give it a go ... See my last post.

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Thomas Fjellstrom
Member #476
June 2000
avatar

:o thats some nice work.. One thing though.. Does the DOSEMU devs actually look at the SF bug tracker? I know allot of sourceforge hosted projects don't..

So does the patch apply right to cvs? a release? which release? etc...

OT: I'm modifying my A.S.S a bit to handle multiple "streams" and putting a (pluggable) mixer layer between the input and output.. Figured you might have some ideas on what features are a must, and others which would be niiicee :) (>2 channels supported, streams arbitrarily panable between all output channels, etc.. are all ones I intend to implement)

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Bruce Perry
Member #270
April 2000

I e-mailed two of the bigshots behind DOSEMU, so they should see it ;)

Click that link. I effectively gave instructions on what to apply the patch to. :)

Sorry, far too tired to think about design ... :-/

And I'm gonna ask again for someone to test FT2 with VDMSound, just to make sure no one misses it ;)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Thomas Fjellstrom
Member #476
June 2000
avatar

Ah.. I did click the link :o I guess I just midly skimmed it...

Quote:

Sorry, far too tired to think about design ...

'Tis why I was askin you :P That and the Codeine :o

BEN WANTS SOEMONE TO TEST FT2 WITH VDMSOUND! (just so people see it ;))

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

jhuuskon
Member #302
April 2000
avatar

I got it running fine but the sound department didn't work too well.
i.e. as long as there wasn't any sound to output, it worked fine. when i clicked play it slowed to a crawl and sounded flatulent.

You don't deserve my sig.

 1   2 


Go to: