473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

wave file

in a stereo type of wave file

i want to know what is this left & right info in a wave file???

how do i read the left & right info from a .wav file to a buffer..
Jul 22 '05 #1
4 3190
vikram wrote:

in a stereo type of wave file

i want to know what is this left & right info in a wave file???

how do i read the left & right info from a .wav file to a buffer..


Even if you think it is, this is not a question
about C++. It is a question of how a particula file
format works.

Unfortunately I have no idea, where you could ask such
a question.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #2
vikram wrote:
in a stereo type of wave file

i want to know what is this left & right info in a wave file???

how do i read the left & right info from a .wav file to a buffer..


I am sorry, vikram, what's your C++ language question?
Jul 22 '05 #3
vikram posted:
in a stereo type of wave file

i want to know what is this left & right info in a wave file???

how do i read the left & right info from a .wav file to a buffer..

Let me see if I have this right:

You have a stereo wave file. A stereo wave file has two seperate channels.
It's like two mono wave files played simultaneously, although through
different output devices, ie. two different speakers.

You want to split this stereo wave file into two mono wave files, either
just in memory, or on disk.

Well...
First thing you need to do is read up on what way a wave file is written.
This involves learning about the "header" of a wave file. I did this myself
about 2 years ago with several different media files types, MP3, WAV, WMA,
MID.
First thing, go to www.google.com, search for

WAVE SOUND AUDIO HEADER .WAV
That should probably give you a good site that will describe the header of a
wave file perfectly. It's ALOT less complicated than MP3 in anyway.

Once you know what you're doing then, I believe there's a good bit a stuff
in the C++ Standard Library that will help you greatly.
-JKop
Jul 22 '05 #4
Karl Heinz Buchegger wrote:

vikram wrote:

in a stereo type of wave file

i want to know what is this left & right info in a wave file???

how do i read the left & right info from a .wav file to a buffer..


Even if you think it is, this is not a question
about C++. It is a question of how a particula file
format works.

Unfortunately I have no idea, where you could ask such
a question.

A good place to start looking for information on proprietary file
formats is wotsit.org:
http://www.wotsit.org/search.asp?page=8&s=music

Brian Rodenborn
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: webstar | last post by:
hi, could you please tell me how to play a small wave file if a button is pressed. or if there is another format that is easer then use that instead of wave. thanks matt
0
by: david.kettle | last post by:
Hello Python World! I've been playing with the 'wave' and 'audioop' modules in the library, and I have a question. When I tried to read a "wav" file with samples in 32-bit float, I got the...
1
by: Jakub Dudek | last post by:
Hi, I am trying to read wave date (the 16 bits audio words) from a wave file using c++. I have tried using the mmsystems library. I got to the point where I read the wave data chunk into a...
3
by: VenuGopal | last post by:
hi, i want to store the WAVE FILE CONTENTS in an XML. How do i do it? thanks Venugopal
5
by: m.topczewski | last post by:
Hello, I'm a beginner in c++, i have to write a program that will take couple of segments from one wave file, and store them in another wave file to be played back later. Here's the code i have...
0
by: Simrat Kaur Sandhu | last post by:
hello friends can anybody tell me how to read data from a wave file.. i have writen code as ... class file { private: FILE *fp; char id; char *sound_buffer; //four bytes to hold 'RIFF' long...
0
by: Karthik | last post by:
Hi, I want to record a sound wave from a mic and at the same time invert it and play the inverted wave.My code goes as follows, however nothing is written into the E:\inverted.wav file.Thanks in...
1
by: homevista | last post by:
Part II: Wave file - How to read to a buffer Wave (or Wav) is the standard format for storing audio data on the PC. As software developers, we are interested in the internal structure of the file...
6
by: homevista | last post by:
PART III: Putting things together In part I we examined the modem to verify that it supported voice. If so, we took a note about the voice data format that we would use. In the second part, we...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.