From c18612995f08b458472137b0dbbc627c951d7454 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 18 Dec 2002 07:49:32 +0000 Subject: [PATCH] sound firing --- stepmania/src/ScreenSandbox.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenSandbox.cpp b/stepmania/src/ScreenSandbox.cpp index af5fc29ce9..c40649aa0d 100644 --- a/stepmania/src/ScreenSandbox.cpp +++ b/stepmania/src/ScreenSandbox.cpp @@ -52,7 +52,8 @@ ScreenSandbox::ScreenSandbox() "p Play\n" "s Stop\n" "l Toggle looping\n" - "a Toggle autostop\n"); + "a Toggle autostop\n" + "f Fire sound in the background"); for(int i = 0; i < nsounds; ++i) { @@ -134,6 +135,9 @@ void ScreenSandbox::Input( const DeviceInput& DeviceI, const InputEventType type case 'a': s[selected].s.SetAutoStop(!s[selected].s.GetAutoStop()); break; + case 'f': + SOUNDMAN->PlayCopy(s[selected].s); + break; /* case SDLK_LEFT: obj.SetX(obj.GetX() - 10);