i've taken the info and code snippets about that from the xbmc cvs -> "XMBC/xbmc/XBAudioConfig.cpp"
this is basicly what the app does:
CODE
BOOL CXBoxSample::applyPatch(BOOL bSetAC3, BOOL bSetDTS)
{
if(!bSetAC3 && !bSetDTS)
return FALSE;
DWORD dwAudioFlags = XGetAudioFlags();
if(bSetAC3)
dwAudioFlags |= XC_AUDIO_FLAGS_ENABLE_AC3;
if(bSetDTS)
dwAudioFlags |= XC_AUDIO_FLAGS_ENABLE_DTS;
DWORD type = REG_BINARY;
ExSaveNonVolatileSetting(XC_AUDIO_FLAGS, &type, (PULONG)&dwAudioFlags, 4);
if(XGetAudioFlags() == dwAudioFlags)
{
return TRUE;
}
return FALSE;
}
calling applyPatch(TRUE, TRUE) however returns FALSE. this leads to the conclusion that either my EEPROM is somewhat different from what "ExSaveNonVolatileSetting" expects (or "ExSaveNonVolatileSetting"does not work as it should?) or maybe the arguments are wrong. Though i've taken the args from the XBMC source. anyone got a clue?
// edit:
btw i got a xbox 1.6 softmodded if that makes a difference.
