Sound

Started by
22 comments, last by Ruudje 20 years, 4 months ago
quote:Original post by Ruudje
the problem is you cant do that anymore... you cant write directly to the ports in protected mode. but stuff like directx and fmod and openal can, so there should be a way


Your right, I should have been more specific. What you could do is write a dos program (ie. use a compiler that can create dos code. I think VC++ V1.52 was the last MS compiler that did. Though there are others that might still). Most versions of windows should be able to handle a true dos program. But again, this is not truly the solution you need, writing to the hardware is not a good idea.

fmod uses software (or hardware through API calls) for mixing. And for play sounds fmod uses selectable drivers.

Linux : oss, alsa, esd;
Windows : dsound, winmm;

Edited for clarity

[edited by - pjcast on December 22, 2003 1:38:00 PM]
Advertisement
All of the various waveOut* functions are documented here.
.
quote:Original post by Sphet
out of phase by 180 degrees (? or 90 I forget)


You''re correct, sin(x) = -sin(x+180)
sin and cos are related by phase shift of 90.

Image loads when I''m online since I''m too lazy to find a permanent host.The following statement is true. The previous statement is false.
Shameless promotion:
FreePop: The GPL Populous II clone.
My stuff.Shameless promotion: FreePop: The GPL god-sim.
actually i did that dos stuff a little while back (16bit realmode) but not for sound... but for vga :D

This topic is closed to new replies.

Advertisement