DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Assembly (http://www.daniweb.com/forums/forum125.html)
-   -   .wav file on x86 (http://www.daniweb.com/forums/thread93039.html)

agrawalashishku Oct 15th, 2007 5:36 am
.wav file on x86
 
Hello Could someone Please give me an idea as to how should I try to play .wav file on an x86 using assembly language in Real mode at the computer startup. Basically at the time when OS has not yet booted.
Thank you

Salem Oct 15th, 2007 8:20 am
Re: .wav file on x86
 
If there is no OS, there can't be a file system either.
How are you proposing to load the .WAV file to be played?
How are you going to locate the appropriate audio device?

jbennet Oct 15th, 2007 8:43 am
Re: .wav file on x86
 
impossible unless you want to write about 1 million lines of assembley ;)

agrawalashishku Oct 15th, 2007 1:13 pm
Re: .wav file on x86
 
Quote:

Originally Posted by Salem (Post 451340)
If there is no OS, there can't be a file system either.
How are you proposing to load the .WAV file to be played?
How are you going to locate the appropriate audio device?

I will read the sectors using INT13 BIOS and the disk already has a FAT file system.

jbennet Oct 15th, 2007 1:25 pm
Re: .wav file on x86
 
but you would need to write a whole media player and a driver for the sound card.

Salem Oct 15th, 2007 2:19 pm
Re: .wav file on x86
 
Seems like you're up on the issues, what's holding you back?

Ancient Dragon Oct 15th, 2007 8:37 pm
Re: .wav file on x86
 
Quote:

Originally Posted by agrawalashishku (Post 451499)
I will read the sectors using INT13 BIOS and the disk already has a FAT file system.

that won't work for huge hard drive partitions -- those larger than about 2 gig.

agrawalashishku Oct 16th, 2007 4:40 am
Re: .wav file on x86
 
Quote:

Originally Posted by Salem (Post 451554)
Seems like you're up on the issues, what's holding you back?

How do I begin i.e. First of all I should know how to play a .wav file using C that would tell me how to play it in assembly. But I dont know anything about .wav files and how to play them. So could someone point me to a resource please

Salem Oct 16th, 2007 6:42 am
Re: .wav file on x86
 
Just punch "wav file format" into a search engine, and start reading.


All times are GMT -4. The time now is 1:24 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC