469,592 Members | 1,799 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

How to read the data of an audio file

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
3 3918
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
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
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.

Similar topics

4 posts views Thread by Nomen Nescio | last post: by
2 posts views Thread by ViperCB | last post: by
11 posts views Thread by jim shirreffs | last post: by
5 posts views Thread by Mark | last post: by
2 posts views Thread by dba123 | last post: by
1 post views Thread by Sebouh | last post: by
1 post views Thread by =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.