Audio for Windows in the assembly

I'm going to make a game in 8086 ASM using VGA for graphics, but before I get started, I want to make sure that I can get audio into my project. I doubt that PC Speaker will be sufficient.

I am looking for a way to program music in 8086 for Windows. Is there any standard in modern sound cards that I can access directly, or will I have to use the Windows API? I'm not quite sure what to look for at the moment, so any suggestions are welcome.

+4
source share
1 answer

Unlike displays that eventually converged to (S) VGA, sound cards never achieved the same compatibility. There were different Sound Blaster, Gravis Ultrasound and others. Nowadays, modern equipment is often incompatible with those, and you cannot program them in DOS as Sound Blaster, without having the proper DOS driver or without knowing the supported memory areas, ports, formats and protocols.

I can only offer such a program for a PC / DOS emulator, such as DosBox, which emulates Sound Blaster and (S) VGA. That should work.

Alternatively, you can simply write a regular Windows program using the Win32 API for input, drawing and sound.

+4
source

Source: https://habr.com/ru/post/1436463/


All Articles