Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I have an mp3 file (stereo, 44100 Hz) which I decoded with mpg123 and got a 32-bit float array. Now I want to write this array to .wav file and play it.

What I have tried:

I found several solutions in Java but they all used the tools from Java libraries
Posted
Updated 15-Sep-20 16:46pm
v2

1 solution

You must understand the wave file format specifikations to write the data.

But at first you must know which parameters your float array has to write the data in the wav file. First write some boilerplate information and than the RIFF and fmt chunk with correct data for the appended sound data.

If you have problem than you better contact some developers from the mpg123 folks.
 
Share this answer
 
Comments
CPallini 12-Apr-18 16:18pm    
5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900