-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
audio files plays in slow mo #169
Comments
I was having this issue as well, even the star-wars.wav file was playing at a delayed rate, after headaches, the answer lies with the DMA setting, in the readme is says that if you use 255 it will disable the DMA channel, this fixed all my issues, hope it helps you too... also, I was not really sure what DMA channel setting does, but for me 0, 1 gives the same slow audio, 2 seems like its a tad faster, but still too slow, i didn't get any different results from any other settings (0-15) and 15 giving no audio at all.
Originally I had thought perhaps sox and even ffmpeg was not producing the proper audio formats, but using WinSCP and pulling the files onto my windows machine, the translated files were perfecly fine infact after some digging i learned that you can use the
After this sanity check i started to dig into the existing settings and thats when i saw the DMA option. |
@crack-coder and @mouseroot
|
this problem occur mainly on RPi 4, as some other hardware is messing PWM clock and DMA is triggered slower than expected. I found this may be related to ARM cores frequency governor, and by disabling it problem can be solved. Please try typing:
|
@markondej I am using a Raspberry Pi 3B+ and I have the issue
Dosen't work for me, the sound is still slowed down I also tried using the parameter below |
I had the same problem and I guess it's a sample rate frequency issue, although I don't know exactly why this happens. My solution: to duplicate the sampleRate in the After saving the changes you have to build the executable again with the make command. |
I was adding files to the folder to play and when I unplugged the pi I was using to move my setup, I started the pi back up and when I turned on the radio to hear the music I put on it was in slow mo. I tried all of the music I put on and I get the same result. I even dragged the wavs over to my computer and they would play normally. I didn't do anything new and the ran the same command as before and now the files don't play at full speed.
The text was updated successfully, but these errors were encountered: