XA audio file acting weird
Posted: June 22nd, 2022, 5:19 pm
Hi there... I've been trying to play an XA audio file, but whenever I run my game in an emulator it either sounds sped up or it slows the entire thing down.
I tried using duckstation at first, which made the audio sound sped up, it also kept spitting out a message saying Dropping 4032 XA frames because audio FIFO still has (an amount of frames) frames.
I then tried pcsx-redux, the audio played fine... but everything was running at around 4 fps, and the logs said Capture buffer is overflowing. Increase CB_SIZE.
Not really sure what going on, perhaps it's my XA file, which I made from a WAV 16-bit PCM file (converted using Audacity), which I then turned into a 37.8 KHz XA file using MC32... The original audio file was simply downloaded from YouTube.
I've been trying to find usable XA files from existing games (even when as far as to try and rip them myself) so that I could find out if was the emulators or my code that was messing something up, but I haven't had any luck in finding one that fits my scenario. I've also tried listening to my XA file in using XAplay, and it sounds fine.
If extra information is needed, just ask, also... here's a link to a Github repo with the entire project.
Thanks in advance.
I tried using duckstation at first, which made the audio sound sped up, it also kept spitting out a message saying Dropping 4032 XA frames because audio FIFO still has (an amount of frames) frames.
I then tried pcsx-redux, the audio played fine... but everything was running at around 4 fps, and the logs said Capture buffer is overflowing. Increase CB_SIZE.
Not really sure what going on, perhaps it's my XA file, which I made from a WAV 16-bit PCM file (converted using Audacity), which I then turned into a 37.8 KHz XA file using MC32... The original audio file was simply downloaded from YouTube.
I've been trying to find usable XA files from existing games (even when as far as to try and rip them myself) so that I could find out if was the emulators or my code that was messing something up, but I haven't had any luck in finding one that fits my scenario. I've also tried listening to my XA file in using XAplay, and it sounds fine.
If extra information is needed, just ask, also... here's a link to a Github repo with the entire project.
Thanks in advance.