AppLog("alSourcei Failed with %d", openAlResult);
return ConvertError(openAlResult);
}
-
- r = EventDrivenThread::Construct();
- TryReturn(r == E_SUCCESS, r, "EventDriven:: Construct failed with %s", GetErrorMessage(r));
__openalPlayerState = OPENAL_PLAYER_STATE_INITIALIZED;
return r;
}
{
if (__openalPlayerState != OPENAL_PLAYER_STATE_NONE)
{
- Quit();
- Join();
+ alDeleteSources(1, &__alSource);
alutExit();
__openalPlayerState = OPENAL_PLAYER_STATE_NONE;
}
bool
GlesCubePlayerForm::Initialize(void)
{
- Form::Construct(FORM_STYLE_NORMAL| FORM_STYLE_HEADER| FORM_STYLE_FOOTER);
+ Form::Construct(FORM_STYLE_NORMAL| FORM_STYLE_HEADER| FORM_STYLE_FOOTER | FORM_STYLE_PORTRAIT_INDICATOR| FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
+ Form::SetOrientation(ORIENTATION_PORTRAIT);
return true;
}
ShowFooterItem(PLAY_INDEX, false);
ShowFooterItem(STOP_INDEX, true);
}
+ else
+ {
+ ShowMessagePopup(String("Error"), String("OpenAL Player Play failed with\n")+ String(GetErrorMessage(r)), ID_ERROR_POPUP);
+ ShowFooterItem(PLAY_INDEX, true);
+ ShowFooterItem(STOP_INDEX, false);
+ }
}
AppLog("Exit");
}