954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

.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

agrawalashishku
Newbie Poster
21 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

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?

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

impossible unless you want to write about 1 million lines of assembley ;)

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 
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.

agrawalashishku
Newbie Poster
21 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

but you would need to write a whole media player and a driver for the sound card.

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

Seems like you're up on the issues, what's holding you back?

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 
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.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
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

agrawalashishku
Newbie Poster
21 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Just punch "wav file format" into a search engine, and start reading.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You