467,903 Members | 1,886 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

to read a .wav file using c program

anybody please tell me how to read a .wav file using c program.when i do with the fopen statement a null value is returned.please tell me solution.
Sep 3 '06 #1
  • viewed: 15176
Share:
6 Replies
Banfa
Expert Mod 8TB
If you are getting NULL returned it is because the program was unable to open the file.

This could be because
  1. You have the name of thje file wrong in the function call
  2. You have the path to the file wrong in the function call
  3. Some other program already has the file open in a mode that is incompatable with the open mode you are trying to use. i.e. someone has it opened for read and you are trying to open it for write.

It is nothing to do with the fact it's a wav file.
Sep 3 '06 #2
100+
D_C
I actually wrote a C++ program to synthesize a tone. I haven't worked on it for a while, but if you have any .wav questions, I'll see what I can do to help you.
Sep 3 '06 #3
I actually wrote a C++ program to synthesize a tone. I haven't worked on it for a while, but if you have any .wav questions, I'll see what I can do to help you.
can u please provide me a very simple source code on how to read a .wav file using c and what the output will look like when the program is executed. treat me as i am a very beginner user of C programming. i am sorry if this question bother u.
Nov 9 '06 #4
100+
hai joby mathai

visit this site.

The wave code can abe to work only in win98.

http://www.shdon.com/view?cat=dos&doc=sound
Nov 15 '06 #5
While specifying path try "/" rather than "\".
Ex: If your file is in C:
Type c:/something.txt


@Banfa
Aug 30 '09 #6
Expert 8TB
I do hope you realize you're responding to a thread that is almost three years old.

kind regards,

Jos
Aug 30 '09 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by ZafT | last post: by
3 posts views Thread by lpe540 | last post: by
19 posts views Thread by ranjeet | last post: by
5 posts views Thread by Sumana | last post: by
9 posts views Thread by flebber | last post: by
5 posts views Thread by CSharp-Jay | last post: by
1 post views Thread by Sachin Garg | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.