From 27f3b8c8e8eead3376f1fefdec524d544547fc49 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 30 Aug 2010 17:42:17 +0200 Subject: [PATCH] Changed: #825 Remove all warnings when compiling Ryzom --- code/nel/samples/sound_sources/main.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/nel/samples/sound_sources/main.cpp b/code/nel/samples/sound_sources/main.cpp index 27f6b8b64..50d28de6a 100644 --- a/code/nel/samples/sound_sources/main.cpp +++ b/code/nel/samples/sound_sources/main.cpp @@ -62,7 +62,7 @@ void Init() AudioMixer->setSamplePath("data/samplebank"); // Packed sheet option, this mean we want packed sheet generated in 'data' folder AudioMixer->setPackedSheetOption("data", true); - + printf("Select NLSOUND Driver:\n"); printf(" [1] FMod\n"); printf(" [2] OpenAl\n"); @@ -71,7 +71,7 @@ void Init() printf("> "); int selection = getchar(); printf("\n"); - + // init with 32 tracks, EAX enabled, no ADPCM, and activate automatic sample bank loading AudioMixer->init(32, true, false, NULL, true, (UAudioMixer::TDriver)(selection - '0')/*UAudioMixer::DriverFMod*/); @@ -143,7 +143,7 @@ void OnMove( const CVector& listenerpos ) * Note: The NeL vector coordinate system is described as follows: * \verbatim * (top) - * z + * z * | y (front) * | / * -----x (right) @@ -151,7 +151,7 @@ void OnMove( const CVector& listenerpos ) */ int main() { - new CApplicationContext(); // crash at end if on stack ... + CApplicationContext *appContext = new CApplicationContext(); // crash at end if on stack ... // Initialization Init(); @@ -208,4 +208,8 @@ int main() delete src1; delete src2; delete AudioMixer; + + delete appContext; + + return 0; }