Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Tyrian 2000 in DOS with sound on PCIe only machines? (Announce)

posted by Japheth Homepage, Germany (South), 28.03.2024, 06:34

> Does this mean that if one disables OPL3 entirely or vice-versa, that, in
> so only having one input thereby, the volume output stream would be
> maximum?

I'm not sure, but in such cases the software mixer has a lot less to do:


if( digital )
   for( i = 0; i < samples * 2; i++ ) *(pPCM+i) = ( *(pPCM+i) * voicevol ) >> 8;
else
   memset( pPCM, 0, samples * sizeof(int16_t) * 2 );


The "if( digital )" is the branch that's used when only SFX sound is to render, while the "memset()"-branch runs when even SFX sound is off - yes, it's true, in this case sbemu/vsbhda still runs in the background, interrupts every few millisecs, emitting "silence"...

---
MS-DOS forever!

 

Complete thread:

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