This is a for people that have more experience i mean that they have studied. How i open a sound file in a computer program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

This is a for people that have more experience i mean that they have studied. How i open a sound file in a computer program?

23rd Jun 2019, 11:27 AM
Alexito
Alexito - avatar
2 Answers
+ 2
You can use ifstream file("filename", ios_base::in | ios::base::binary); to open the file and then int c; while ((c = file.get()) != EOF) To read the file byte by byte. Now, what those bytes mean depends on the format of the file (mp3, waw etc.).
23rd Jun 2019, 11:36 AM
Vlad Serbu
Vlad Serbu - avatar
+ 1
I use system openfile and dosen't work so don't put that please
23rd Jun 2019, 11:28 AM
Alexito
Alexito - avatar