Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

PC speaker driver (Miscellaneous)

posted by RayeR Homepage, CZ, 07.02.2008, 13:30

> The task could be easily done with a JLM, at least for real-mode games.
> Cheating protected-mode games is tricky, though.

I don't know much details but it would be some IOPL bitmat in v86 mode so you can trap access to specific port? So then if DOS app call some outporb(spkrio,value) JEMM will catch it and grab the value and process it itself? But in case of soundcard emulation it would be more complicated when using IRQ and DMAs. Unfortunately I never programmed a soundblaster so I have no clue how it works. Just guess you put say 64kB of sample in memory buffer, setup DMA to transfer it to soundcard and DSP generate IRQ when buffer is empty (resp. better 1/2 is empty to avoid clicks) and the ISR will fill another sample blocks in buffer...

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 100 users online (0 registered, 100 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum