I am developing an OS in assembly that have to play musics using soundblaster, but it doesn't uses file system.
The idea is make a executable (.com) in windows that will burn the raw sound part of an selected wave file in the OS's disk image, and create an index to it, so that OS can load the sound from here and play it using soundblaster.
The question is that i didn't find any REAL explanation of how to play sounds on soundblaster using assembly language, all that i found were explanations of how the soundblaster works, but i need to now how to MAKE it work.
Other question is the wave files, the only thing i found is an article explaining it's structure, but it doesn't explain how the sound in the wave found must be played.
I found an article that have a program in assembly that plays wave file in soundblaster, in the link
http://muruganad.com/8086/8086-Assembly ... -File.html, but there are two included files that i didn't find, so it's incomplete.
I need some example or tutorial of how to play wave files using a pure assembly program.
And a little question: is the Soundblaster the most compatible sound card?
Sound blaster and wave files
Re: Sound blaster and wave files
Well you just read the file and send the values to the Soundcard, aka frequencies.
P.S. Fix up your English, very hard to comprehend.
P.S. Fix up your English, very hard to comprehend.
Re: Sound blaster and wave files
The question is how to locate the pure sound part that is on the wave file, and how do i send this informations to the soundblaster. I need to know how to operate the I/O of the soundblaster.
Re: Sound blaster and wave files
If you look through the links on the wiki on the Soundblaster 16 page, they tell you exactly what to do. You aren't going to find any tutorials on how to do it in assembly, however it tells you what you have to do, which is enough to be able to interface with it.
Wait... What?
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Sound blaster and wave files
There might be something of use to you here - one of the links (third section down on the left) explains the format of wav files.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming