[programming] how to get state TV in MUTE ON

Ideas and dreaming will go this forum
Post Reply

geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

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

Post 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;
...}
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

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

Post by juusso »

Hehe, run game and get mute ;)

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

joke... :lol:
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

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

Post 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.

Post Reply

Return to “[B] Brainstorm”