sonic-pi-net / sonic-pi

Code. Music. Live.
https://sonic-pi.net
Other
10.81k stars 922 forks source link

Issues using head phones #2027

Open craftycomputingltd opened 5 years ago

craftycomputingltd commented 5 years ago

I used Sonic Pi with latest OS on the Raspberry Pi yesterday and none of the headphones worked. Usually in the past there is a way of choosing headphones but I can't see it with this edition.

minivan commented 5 years ago

Hi! Sorry to hear that. Did you see an error when booting Sonic Pi? If so, can you paste the output of that error?

Thank you!

craftycomputingltd commented 5 years ago

I have had different issues with Windows and on the Pi so was keeping them separate

sezzyann commented 5 years ago

There was no error when booting it and it worked fine to begin with. I also can't see the preferences for headphones menu. I have a class of 30 doing this so really need help

samaaron commented 5 years ago

@sezzyann sorry it's confusing. The headphones preference option was removed at the direct request of the Raspberry Pi Foundation. Personally, I think it was a bad decision, but at the time they were funding me so I just did as they asked.

You can use their sound settings to switch to the headphones. It's been a long time since I tuned on a Pi, but if I remember correctly, you can access the system wide settings by right-clicking on the little sound icon in the menu bar.

I hope that this helps. Also, note that Sonic Pi works just fine on Windows and Mac computers, so it might also be easier to just use those if your school already has them set up. :-)

sezzyann commented 5 years ago

Hi Sam I tried that on the Pi but it didn't seem to work. Maybe this is a Raspberry Pi issue rather than sonic pi. So I tried to use Windows as well and it worked initially for the children on the first few commands then stopped coming through the headphones even though everthing was fine with the code and it looked like it was playing. I don't suppose it has anything else that could be being blocked by the school firewall? I can ask my technician to unblock it if it is. The headphone continue to work fine on other sites. We are going to out sonic pi in the curriculum for all our trust schools so I am trying to get it working in ours before we roll it out. Thanks Sarah

samaaron commented 5 years ago

If you can hear sound on the Pi through the headphones with apps other than Sonic Pi, then it's definitely an issue with Sonic Pi, otherwise it's a Pi config issue.

Also, with PCs, I have noted that some hardware setups struggle when people unplug and plug the headphones during a Sonic Pi session. If that happens, you just need to restart Sonic Pi - it always remembers what you were last doing so nothing is lost.

I'd love to help you get things working on the PC though - so please do keep this conversation going.

sezzyann72 commented 5 years ago

Hi Sam I have just tried the unplugging the headphones and it does stop them from working but like you say closing Sonic Pi and starting it up again fixed it. I will make sure the children know plus for the other schools who will be using this in September that they know too. I am surprised nobody else has mentioned it.Can we put it somewhere a a sticky in case anyone else has this problem on windows. I will keep you posted on Twitter and here of what we are doing and what is working well. Thanks Sarah

samaaron commented 5 years ago

@sezzyann excellent news! So sorry you had issues in the first place though.

Really looking forward to hearing what you come up with. Also, the next release will have a new version of the audio synthesis engine which has had a lot of Windows love, so hopefully things will have improved a little there.

dethe commented 4 months ago

I got excited to see that this might improve, then saw the date on it. I attended a Sonic Pi workshop last weekend and everyone (at least everyone on Windows) continued to have the problem that they needed to exit Sonic Pi and restart it when switching between headphones and speakers. We were all using Sonic Pi 4.5.1 freshly installed.