mirror of https://github.com/stella-emu/stella.git
Minor change to invoke mute() method instead of pause() on the sound
object. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@260 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
69df04607e
commit
21af97fb43
|
@ -8,12 +8,12 @@
|
||||||
// SS SS tt ee ll ll aa aa
|
// SS SS tt ee ll ll aa aa
|
||||||
// SSSS ttt eeeee llll llll aaaaa
|
// SSSS ttt eeeee llll llll aaaaa
|
||||||
//
|
//
|
||||||
// Copyright (c) 1995-1998 by Bradford W. Mott
|
// Copyright (c) 1995-2004 by Bradford W. Mott
|
||||||
//
|
//
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: EventHandler.cxx,v 1.25 2004-05-28 22:07:57 stephena Exp $
|
// $Id: EventHandler.cxx,v 1.26 2004-06-13 04:57:17 bwmott Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -92,7 +92,7 @@ void EventHandler::sendKeyEvent(StellaEvent::KeyCode key, Int32 state)
|
||||||
{
|
{
|
||||||
myMenuStatus = !myMenuStatus;
|
myMenuStatus = !myMenuStatus;
|
||||||
myConsole->frameBuffer().showMenu(myMenuStatus);
|
myConsole->frameBuffer().showMenu(myMenuStatus);
|
||||||
myConsole->sound().pause(myMenuStatus);
|
myConsole->sound().mute(myMenuStatus);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ void EventHandler::sendEvent(Event::Type event, Int32 state)
|
||||||
{
|
{
|
||||||
myPauseStatus = !myPauseStatus;
|
myPauseStatus = !myPauseStatus;
|
||||||
myConsole->frameBuffer().pause(myPauseStatus);
|
myConsole->frameBuffer().pause(myPauseStatus);
|
||||||
myConsole->sound().pause(myPauseStatus);
|
myConsole->sound().mute(myPauseStatus);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if(event == Event::Quit)
|
else if(event == Event::Quit)
|
||||||
|
|
Loading…
Reference in New Issue