Hai friends,
i Dont know how to open an audio file using c. please help me to write a code to open an audio file. Thank u in advance.
Hai friends,
i Dont know how to open an audio file using c. please help me to write a code to open an audio file. Thank u in advance.
what have you tried so far? we won't write it for you.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
what do you mean by open? if you just want to read bytes - audio file is just a binary file - so simple fopen will do.
if you want to parse it - you need to know the file format. for example wave file format is well defined and there are a lot of samples reading/writing it.
if you want to actually play the audio - you need to use some OS dependent library for rendering audio.
if audio is encoded - you would need to use some audio decoder library as well...
So what exactly you want to do?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler