Sep-13-2019, 08:33 AM
Hi everyone:
I tried to use pygame to play a sound file on the raspberry pi with respeaker hat on it. I tried to specify the respeaker's ac101 to be the sound device using: pygame.mixer.init(frequency=48000,channels=1,buffer=4096,devicename='ac101'), but I got an error: "pygame.error: Couldn't find any hardware audio formats". I then clear the parameters and pygame.mixer.init(), the error still exist.
Do anyone have encountered this issue before? Could u help me?
PS: I am using Raspberry pi 3B with Respeaker 4 mic linear array, and pygame version is 2.0.0.dev1
I tried to use pygame to play a sound file on the raspberry pi with respeaker hat on it. I tried to specify the respeaker's ac101 to be the sound device using: pygame.mixer.init(frequency=48000,channels=1,buffer=4096,devicename='ac101'), but I got an error: "pygame.error: Couldn't find any hardware audio formats". I then clear the parameters and pygame.mixer.init(), the error still exist.
Do anyone have encountered this issue before? Could u help me?
PS: I am using Raspberry pi 3B with Respeaker 4 mic linear array, and pygame version is 2.0.0.dev1