jefflunt / glint-box

(retired) This was fun - but seriously, try Lakka instead (http://www.lakka.tv/)
MIT License
20 stars 5 forks source link

Audio Jack #30

Open brandtdaniels opened 11 years ago

brandtdaniels commented 11 years ago

Would like to enable audio jack on RPi in case that HDMI audio isn't available (monitor doesn't have speakers).

jefflunt commented 11 years ago

I'm in that situation (monitor without speakers), and the sound works fine out of the analog jack. Do you not get any sound at all?

It also seems to work over HDMI, at least on my TV in the living room.

Let me test with the latest release to confirm (hopefully coming by tomorrow afternoon), and I'll let you know.

brandtdaniels commented 11 years ago

HDMI sound works perfect...no sound when headphones are plugged in.

jefflunt commented 11 years ago

Everything works fine - audio jack or HDMI audio, 256 and 512 models.

Latest build uploading now...

jefflunt commented 11 years ago

Oh...headphone sound.

Yeah, well good luck with that. Sound directly out from the audio jack isn't amplifiedhttps://groups.google.com/forum/#!topic/glint-help/6I4xouUNRnY, so I'm not surprised you can't hear anything. That's not a software problem though. That's just the way things are.

While I can hear some sound through my unpowered headphones (decided to try it myself, directly into the audio jack), it's pretty quiet and full of noise.

This is just the way it's going to be. There have to be a set of powered speakers on the other side of that jack.

-Jeff

On Sun, Jan 6, 2013 at 12:46 AM, Brandt Daniels notifications@github.comwrote:

HDMI sound works perfect...no sound when headphones are plugged in.

— Reply to this email directly or view it on GitHubhttps://github.com/normalocity/glint-nes/issues/30#issuecomment-11925184.

brandtdaniels commented 11 years ago

Powered speakers didn't work for me. I suppose because the audio was successfully working through the HDMI that it couldn't do both HDMI and powered speakers. I wonder if I had a monitor with no HDMI audio capabilities that a powered speaker would work.

-Brandt

Sent from my iPhone

On Jan 6, 2013, at 12:24 AM, Jeff Lunt notifications@github.com wrote:

Oh...headphone sound.

Yeah, well good luck with that. Sound directly out from the audio jack isn't amplifiedhttps://groups.google.com/forum/#!topic/glint-help/6I4xouUNRnY, so I'm not surprised you can't hear anything. That's not a software problem though. That's just the way things are.

While I can hear some sound through my unpowered headphones (decided to try it myself, directly into the audio jack), it's pretty quiet and full of noise.

This is just the way it's going to be. There have to be a set of powered speakers on the other side of that jack.

-Jeff

On Sun, Jan 6, 2013 at 12:46 AM, Brandt Daniels notifications@github.comwrote:

HDMI sound works perfect...no sound when headphones are plugged in.

— Reply to this email directly or view it on GitHubhttps://github.com/normalocity/glint-nes/issues/30#issuecomment-11925184.

— Reply to this email directly or view it on GitHub.

jefflunt commented 11 years ago

Hm, that is weird.

I guess I can only say that I would expect it to work. I have an HD, HDMI monitor connected to the Pi (no speakers), and powered speakers plugged into the audio jack, and I get analog audio out without issues.

I believe there is also an audio setting that controls where the output goes. There may be a "send this to both places" setting for all I know.

-Jeff

On Sun, Jan 6, 2013 at 3:43 AM, Brandt Daniels notifications@github.comwrote:

Powered speakers didn't work for me. I suppose because the audio was successfully working through the HDMI that it couldn't do both HDMI and powered speakers. I wonder if I had a monitor with no HDMI audio capabilities that a powered speaker would work.

-Brandt

Sent from my iPhone

On Jan 6, 2013, at 12:24 AM, Jeff Lunt notifications@github.com wrote:

Oh...headphone sound.

Yeah, well good luck with that. Sound directly out from the audio jack isn't amplified< https://groups.google.com/forum/#!topic/glint-help/6I4xouUNRnY>, so I'm not surprised you can't hear anything. That's not a software problem though. That's just the way things are.

While I can hear some sound through my unpowered headphones (decided to try it myself, directly into the audio jack), it's pretty quiet and full of noise.

This is just the way it's going to be. There have to be a set of powered speakers on the other side of that jack.

-Jeff

On Sun, Jan 6, 2013 at 12:46 AM, Brandt Daniels < notifications@github.com>wrote:

HDMI sound works perfect...no sound when headphones are plugged in.

— Reply to this email directly or view it on GitHub< https://github.com/normalocity/glint-nes/issues/30#issuecomment-11925184>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/normalocity/glint-nes/issues/30#issuecomment-11926255.

brandtdaniels commented 11 years ago

Using the two amixer commands on this page: http://www.raspians.com/Knowledgebase/no-analog-sound-out-the-headphone-jack/

I was able to switch between HDMI audio and headphone / powered speaker sound. (headphones worked fine)

Maybe there is a way to enable both

update:
sudo amixer cset numid=3 n: 0=auto, 1=analog, 2=hdmi

So auto is the default. I don't have an HDMI monitor with no speakers to test so that is probably why I couldn't get headphone output....

brandtdaniels commented 11 years ago

RPi, doesn't have automatic headphone detection to switch the audio output without adding a small external circuit. With that being said I would like to suggest the option of adding some sort of menu option in ES.

jefflunt commented 11 years ago

Sounds like a good idea. I can look into this for the next release.