By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,319 Members | 2,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,319 IT Pros & Developers. It's quick & easy.

How to read the data of an audio file

P: n/a
Sir,

I want to read the data of an audio file in c++ (Windows).
What is the API which helps to read the data of an audio file.

I want to read BitRate,Audio Sample Size,Audio Sample rate and Channel

udhay

Apr 4 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Udhay wrote:
I want to read the data of an audio file in c++ (Windows).
What is the API which helps to read the data of an audio file.
You need to include <fstream>, and use 'std::ifstream' class, most
likely. Open the file as binary. Use 'read' member function.
I want to read BitRate,Audio Sample Size,Audio Sample rate and Channel
I am sure all those are parts of the data you can read. You just need
to know the format of the file and then read portions using proper data
types and chunk lengths. C++ language can't tell you what those are,
you simply need to know; and where you learn that is unspecified in the
language.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 4 '07 #2

P: n/a
Sir
Is there any sample code to read the audio file. and i want to write
it to another file.

If so,please let me know.

regards

udhay

Apr 12 '07 #3

P: n/a
Udhay wrote:
Sir

Is there any sample code to read the audio file. and i want to write
it to another file.
Probably, have you tried Google? This isn't realy a C++ question.

--
Ian Collins.
Apr 12 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.