GP2X Backend: Volume control code cleanup.
svn-id: r42785
This commit is contained in:
parent
32d74a2247
commit
037c02a1f7
6 changed files with 68 additions and 87 deletions
|
@ -233,15 +233,16 @@ void OSystem_GP2X::initBackend() {
|
|||
// switch. Still, it's a potential future change to keep in mind.
|
||||
_timer = new DefaultTimerManager();
|
||||
_timerID = SDL_AddTimer(10, &timer_handler, _timer);
|
||||
}
|
||||
|
||||
// Initialise any GP2X specific stuff we may want (Volume, Batt Status etc.)
|
||||
GP2X_device_init();
|
||||
/* Initialise any GP2X specific stuff we may want (Batt Status, scaler etc.) */
|
||||
GP2X_HW::deviceInit();
|
||||
|
||||
/* Set Default hardware mixer volume to a preset level (VOLUME_INITIAL). This is done to 'reset' volume level if set by other apps. */
|
||||
GP2X_HW::mixerMoveVolume(0);
|
||||
|
||||
// Set Default hardware mixer volume to a plesent level.
|
||||
// This is done to 'reset' volume level if set by other apps.
|
||||
GP2X_mixer_set_volume(70, 70);
|
||||
|
||||
}
|
||||
|
||||
//if (SDL_GP2X_MouseType() == 0) {
|
||||
// // No mouse, F100 default state.
|
||||
|
@ -448,7 +449,7 @@ void OSystem_GP2X::quit() {
|
|||
if (_joystick)
|
||||
SDL_JoystickClose(_joystick);
|
||||
//CloseRam();
|
||||
GP2X_device_deinit();
|
||||
GP2X_HW::deviceDeinit();
|
||||
|
||||
SDL_RemoveTimer(_timerID);
|
||||
closeMixer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue