slinga
Established Member
When I play my PCM audio file it plays back only ~2s of my 3s clip.
Code:
jo_audio_load_pcm("LIFEU.PCM", JoSoundStereo8Bit, &g_Assets.lifeUpPCM);
jo_audio_play_sound(&g_Assets.lifeUpPCM);
The mp3 itself:
Audio file with ID3 version 2.3.0, contains:MPEG ADTS, layer III, v1, 160 kbps, 44.1 kHz, Stereo
Converting with ffmpeg:
ffmpeg -i life-up.mp3 -f s8 -ac 1 -ar 44100 100.PCM
Verifying with ffplay the PCM file is correct:
ffplay -f s8 -ar 44.1k -ac 1 100.PCM , 44.1 kHz, Stereo
Any advice on what I'm doing wrong? Is this a bug in Jo Engine? Thanks in advance.
Code:
jo_audio_load_pcm("LIFEU.PCM", JoSoundStereo8Bit, &g_Assets.lifeUpPCM);
jo_audio_play_sound(&g_Assets.lifeUpPCM);
The mp3 itself:
Audio file with ID3 version 2.3.0, contains:MPEG ADTS, layer III, v1, 160 kbps, 44.1 kHz, Stereo
Converting with ffmpeg:
ffmpeg -i life-up.mp3 -f s8 -ac 1 -ar 44100 100.PCM
Verifying with ffplay the PCM file is correct:
ffplay -f s8 -ar 44.1k -ac 1 100.PCM , 44.1 kHz, Stereo
Any advice on what I'm doing wrong? Is this a bug in Jo Engine? Thanks in advance.