Hi all!
Pure data on the Raspberry doesn't output any kind of sound. I'm using the alsa drivers, How should I set it up correctly?
-
No sound from raspberry
-
@Congarou Do you get sound in other circumstances? If not then this might help........
http://www.nodepond.com/blog/758-puredata-on-raspberry-pi-useful-hints-and-links as it might be sending to the hdmi audio out......
Otherwise......https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=19155
or you could try Miller's optimised Vanilla.......https://guitarextended.wordpress.com/2014/03/23/update-on-running-pd-on-the-raspberry-pi/
David. -
@whale-av Hey! Thank you for the link but I need to run pure data on a headless raspberry and I need the audio out from the 3,5 jack.
-
@Congarou Have you had sound from the jack before? You can force it with
sudo amixer cset numid=3 1
David.
-
-
Hello again,
Have you got a monitor to see what is happening on the rpi, or are you running completely headless and you only have ssh access?Has your patch got a
[loadbang]
|
[pd dsp 1(
inside to turn on the audio?Had you had sound from the jack with some other program?
I imagine you have already looked at https://www.raspberrypi.org/documentation/configuration/audio-config.md
? but it should do the same thing as I posted above.
Is there any noise of any kind coming from the jack?...... even hiss or digital noise?
David. -
@whale-av
Nope, the raspberry will run headless but now i'm configuring it with a monitor a a basic desktop environment.
Yep, dsp on, not from the patch but from the media menu.
Yep, I know that link. and it's configured correctly as far as i understand it. The audio is forced trough the 3,5 jack.
Nope, I can't hear anything trough the 3,5 jack even the most light noise, I can't even hear any "short" noise when i Plug or unplug the headphones, it's like the output it completely unconnected7unpowered. -
@Congarou You could maybe try plugging the jack to an input on your hi-fi to see if you hear anything? If you have an adapter cable....... I will look at my rpi and see what my audio settings are....
(My rpi had stopped producing any sound...... I had been messing around with a different OS, plugging in an HDMI screen etc.............
amixer cset numid=3 1 worked straight away to bring it backMy settings are 44100 (not important) 30ms block 64
Then...... use device ticked....... bcm2835 (ALSA plugin)....... 2-channels
for both in and out. (although I don't have an input)
Check out this web page.........http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/
David. -
I had the same difficulty. No sound cards were available according to
aplay --list-devices
I found somewhere (I forget where) the suggestion to add to
/boot/config.txt
the line:
dtparam=audio=on
and from then everything went swimmingly. I set up some (possibly pretty dangerous) values in
/etc/security/limits.conf
like this:
### realtime permission for audio @audio – rtprio 99 @audio – memlock unlimited @audio – nice -10 @audio - priority 8 # End of file
The audio priority of 8 seems to be necessary to stop annoying messages in the puredata console when it's started. I'm not an expert on these values, they might not be wise, safe or ideal but they worked for me.
And I made sure that my user is in the audio group:
usermod -a -G audio david
And I've had glitch free performance since out of the mini jack.