sound firing

This commit is contained in:
Glenn Maynard
2002-12-18 07:49:32 +00:00
parent 21ff1a044e
commit c18612995f
+5 -1
View File
@@ -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);