Page 1 of 1

Re: [programming] how to get state TV in MUTE ON

Posted: Mon Apr 04, 2011 4:49 pm
by geo650
I know how to get mute state in debug menu:
- TOP Debug Menu,
- 12 (Subsystem DBG),
- 5 (SsSound Debug),
- 22 (GetSpeakerOption),
- 2 (SPEAKER_OPTION_USER_MUTE) <=== maybe this is the parameter needed
and the answer is 0 (not muted) or 1 (muted).
If there is another parameter required, like SdSoundID, maybe you must use 0 for main speaker or 1 for earphone output.

I don't know it for sure, I'm just guessing. Debug Mode method is tested on B650/T-CHL7DEUC-2005.0.
Later, I will try the function you wrote about.
...or maybe it should be _ZN11SsSoundBase16GetSpeakerOptionEiPi ?

EDIT: Unfortunately, I can't call this function. My TV restarts. :(

EDIT #2: I DID IT other way, I think :D

This is the clue:

Code: Select all

extern int _ZN11SSoundBase12m_eMuteStateE;
...
int Game_Main(...)
{...
   int mute = _ZN11SSoundBase12m_eMuteStateE;
...}

Re: [programming] how to get state TV in MUTE ON

Posted: Mon Apr 04, 2011 9:17 pm
by juusso
Hehe, run game and get mute ;)

It is simpler to press MUTE btn on RC...

joke... :lol:

Re: [programming] how to get state TV in MUTE ON

Posted: Tue Apr 05, 2011 10:24 am
by geo650
juuso wrote:...
It is simpler to press MUTE btn on RC...

joke... :lol:
I hope it is joke, especially because by pressing MUTE on your RC your application will not get to know if audio is muted or not.