User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 402,548 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,277 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser: Programming Forums
Views: 948 | Replies: 8
Reply
Join Date: Apr 2006
Posts: 21
Reputation: agrawalashishku is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
agrawalashishku agrawalashishku is offline Offline
Newbie Poster

Question .wav file on x86

  #1  
Oct 15th, 2007
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2005
Posts: 3,411
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 21
Solved Threads: 386
Colleague
Salem's Avatar
Salem Salem is offline Offline
void main'ers are DOOMed

Re: .wav file on x86

  #2  
Oct 15th, 2007
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?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 268
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: .wav file on x86

  #3  
Oct 15th, 2007
impossible unless you want to write about 1 million lines of assembley
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Apr 2006
Posts: 21
Reputation: agrawalashishku is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
agrawalashishku agrawalashishku is offline Offline
Newbie Poster

Re: .wav file on x86

  #4  
Oct 15th, 2007
Originally Posted by Salem View Post
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.
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 268
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: .wav file on x86

  #5  
Oct 15th, 2007
but you would need to write a whole media player and a driver for the sound card.
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Dec 2005
Posts: 3,411
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 21
Solved Threads: 386
Colleague
Salem's Avatar
Salem Salem is offline Offline
void main'ers are DOOMed

Re: .wav file on x86

  #6  
Oct 15th, 2007
Seems like you're up on the issues, what's holding you back?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,703
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 36
Solved Threads: 879
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: .wav file on x86

  #7  
Oct 15th, 2007
Originally Posted by agrawalashishku View Post
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.
Last edited by Ancient Dragon : Oct 15th, 2007 at 7:38 pm.
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Reply With Quote  
Join Date: Apr 2006
Posts: 21
Reputation: agrawalashishku is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
agrawalashishku agrawalashishku is offline Offline
Newbie Poster

Re: .wav file on x86

  #8  
Oct 16th, 2007
Originally Posted by Salem View Post
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
Reply With Quote  
Join Date: Dec 2005
Posts: 3,411
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 21
Solved Threads: 386
Colleague
Salem's Avatar
Salem Salem is offline Offline
void main'ers are DOOMed

Re: .wav file on x86

  #9  
Oct 16th, 2007
Just punch "wav file format" into a search engine, and start reading.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Assembly Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 8:57 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC