From 1a654a31825c4cd6fdfa5060847470990a3a10cf Mon Sep 17 00:00:00 2001 From: beveloper Date: Sat, 26 Oct 2002 22:25:25 +0000 Subject: [PATCH] a small bugfix git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1708 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../simple_game_sound_test/SimpleSoundTest.cpp | 14 ++++++++------ .../game/simple_game_sound_test/SimpleSoundTest.h | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/tests/kits/game/simple_game_sound_test/SimpleSoundTest.cpp b/src/tests/kits/game/simple_game_sound_test/SimpleSoundTest.cpp index 8ccd56bd8f..4062e0e617 100644 --- a/src/tests/kits/game/simple_game_sound_test/SimpleSoundTest.cpp +++ b/src/tests/kits/game/simple_game_sound_test/SimpleSoundTest.cpp @@ -36,8 +36,8 @@ #include #include -#include -#include +#include "SimpleGameSound.h" +#include "SimpleSoundTest.h" const int32 SLIDER_PAN = 'SPan'; const int32 SLIDER_GAIN = 'Gain'; @@ -68,18 +68,18 @@ void SimpleSoundApp::ReadyToRun() } -void SimpleSoundApp::RefsReceived(BMessage* message) +void SimpleSoundApp::RefsReceived(BMessage* msg) { uint32 type; int32 count; - message->GetInfo("refs", &type, &count); + msg->GetInfo("refs", &type, &count); if (type == B_REF_TYPE) { // Load the files for(int32 i = 0; i < count; i++) { entry_ref file; - if (message->FindRef("refs", i, &file) == B_OK) + if (msg->FindRef("refs", i, &file) == B_OK) { BSimpleGameSound * sound = new BSimpleGameSound(&file); @@ -95,7 +95,9 @@ void SimpleSoundApp::RefsReceived(BMessage* message) // SimpleSoundWin --------------------------------------------------------------- SimpleSoundWin::SimpleSoundWin(BRect frame, const char * title) - : BWindow(frame, title, B_TITLED_WINDOW, B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS) + : BWindow(frame, title, B_TITLED_WINDOW, B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS), + fSound(NULL), + fPanel(NULL) { BRect r(10, 10, 100, 40); fBrowse = new BButton(r, "buttonBrowse", "Browse", new BMessage(BUTTON_BROWSE)); diff --git a/src/tests/kits/game/simple_game_sound_test/SimpleSoundTest.h b/src/tests/kits/game/simple_game_sound_test/SimpleSoundTest.h index a5af150f2b..4722f08d13 100644 --- a/src/tests/kits/game/simple_game_sound_test/SimpleSoundTest.h +++ b/src/tests/kits/game/simple_game_sound_test/SimpleSoundTest.h @@ -66,7 +66,7 @@ public: SimpleSoundApp(const char * signature); void ReadyToRun(); - void RefsReceived(BMessage * message); + void RefsReceived(BMessage * msg); private: SimpleSoundWin * fWin;