CDDA playback

Code example

Creating the disk image

mkpsxiso -y isoconfig.xml

Using ffmpeg to generate a CDDA compliant Wav file

Needed Specification : RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz


ffmpeg -i input.mp3 -acodec pcm_s16le -ac 2 -ar 44100 output.wav

Merging two mono audio channels into one stereo channel

ffmpeg -i -filter_complex "[0:a][0:a]amerge=inputs=2[a]" -map "[a]" herbi.wav

Adding the audio track to the CD

Add a track section after your data track in isoconfig.xml :

<track type="audio" source="file.wav"/>

Music credits

Track 1 : Beach Party by Kevin MacLeod Link: License:

Track 2: Funk Game Loop by Kevin MacLeod Link: License: