Sound blaster and wave files

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
guferr
Posts: 22
Joined: Sat Aug 20, 2011 1:57 pm

Sound blaster and wave files

Post by guferr »

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?
User avatar
Nessphoro
Member
Member
Posts: 308
Joined: Sat Apr 30, 2011 12:50 am

Re: Sound blaster and wave files

Post by Nessphoro »

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.
guferr
Posts: 22
Joined: Sat Aug 20, 2011 1:57 pm

Re: Sound blaster and wave files

Post by guferr »

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.
Yargh
Member
Member
Posts: 56
Joined: Sat Jun 12, 2010 9:04 pm
Location: Somewhere else.

Re: Sound blaster and wave files

Post by Yargh »

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?
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Sound blaster and wave files

Post by DavidCooper »

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
Post Reply