Convert .wav file into bytes

Reply

Join Date: Nov 2007
Posts: 10
Reputation: black3 is an unknown quantity at this point 
Solved Threads: 0
black3 black3 is offline Offline
Newbie Poster

Convert .wav file into bytes

 
0
  #1
Nov 18th, 2007
I was wondering if it is possible to write a program in C or C++(maybe even Visual Basic, as i m more experienced with that programming language) to convert a .wav file into bytes and save the same file as a text file.
I am a Visual Basic programmer and have little (almost no) knowledge about C or C++ programming. Please Help.

By far, I have achieved success in only loading up the .wav file in Visual Basic. I am still wanting to learn how to extract data from the wav file using Visual Basic
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Convert .wav file into bytes

 
0
  #2
Nov 19th, 2007
You aren't going to save a binary file as a text file.

The question is: do you want to make a binary dump of the file (displaying the hexadecimal code for the content of each byte as text), or separate out the bytes themselves, leaving them in numeric form?

In VB, use the hex$(byte1) function to turn a byte's internal value (byte1) into the text representing that value. The result is a string with two hexadecimal digits.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 1
Reputation: kingshuk.sarkar is an unknown quantity at this point 
Solved Threads: 0
kingshuk.sarkar kingshuk.sarkar is offline Offline
Newbie Poster

Re: Convert .wav file into bytes

 
0
  #3
Sep 11th, 2008
i just want to convt the .wav file with RIFF header and insert it into SQL Server using C++ in byte form, not in .NET platform.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 2
Reputation: riteshdalvi is an unknown quantity at this point 
Solved Threads: 0
riteshdalvi riteshdalvi is offline Offline
Newbie Poster
 
0
  #4
Oct 9th, 2009
I want to convert wav file into bytes and then read it..plz can you help me to implement this using C#..i would be very thankful for your cooperation..I'l be presenting my proj in few days so i need to implement this as soon as possible.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 348
Reputation: Troy III will become famous soon enough Troy III will become famous soon enough 
Solved Threads: 42
Troy III's Avatar
Troy III Troy III is offline Offline
Posting Whiz
 
0
  #5
Oct 9th, 2009
Originally Posted by riteshdalvi View Post
I want to convert wav file into bytes and then read it..plz can you help me to implement this using C#..i would be very thankful for your cooperation..I'l be presenting my proj in few days so i need to implement this as soon as possible.
Well...
I'm sorry to have to say this to you, but HTML and CSS are not capable of doing much of anything with your wav files except playing them, and what I really meant to say is that you are in the wrong section of the forum.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC