Love Aurell
Love Aurell

Reputation: 40

No sound output when running jsyn on raspberry pi (Raspbian Jessie)

I've started writing a java synthesizer using the jsyn library. It works well in windows and osx, but when I run it on Raspbian. When starting the program i notice some activity in the headphone output though, it starts to output some silent noise, but no clear loud sawtooth wave like it does on Windows and OSX. Which sound device is the correct one to select as output when starting the synthesizer if I want to use the headphone jack? There are 4 avaliable when I run the AudioDeviceManager.getDeviceCount()

Upvotes: 0

Views: 178

Answers (1)

philburk
philburk

Reputation: 711

It is hard to know which of the 4 devices to use. This example will list them by name and also indicate which one is the default input or output.

https://github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/ListAudioDevices.java

It is also possible that the CPU cannot keep up. Try just playing a single oscillator. A sine wave is good because then you can easily hear any click or distortion. Here is an example that does that:

https://github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/PlayTone.java

Upvotes: 1

Related Questions