From 519a84334091adc73edf274052eac1ed6bf10815 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 29 Oct 2011 11:06:24 +0100 Subject: [PATCH] Move ALUT 1.0 variables inside the #ifdef, to avoid some compiler warnings. --- simgear/sound/openal_test1.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/simgear/sound/openal_test1.cxx b/simgear/sound/openal_test1.cxx index f02c53db..0a6dc885 100644 --- a/simgear/sound/openal_test1.cxx +++ b/simgear/sound/openal_test1.cxx @@ -103,10 +103,6 @@ int main( int argc, char *argv[] ) { ALfloat source_vel[3]; // configuration values - ALenum format; - ALsizei size; - ALvoid* data; - ALsizei freq; ALboolean loop = false; source_pos[0] = 0.0; source_pos[1] = 0.0; source_pos[2] = 0.0; @@ -131,6 +127,11 @@ int main( int argc, char *argv[] ) { } #else + ALenum format; + ALsizei size; + ALvoid* data; + ALsizei freq; + # if defined (__APPLE__) alutLoadWAVFile( (ALbyte *)AUDIOFILE, &format, &data, &size, &freq ); # else -- 2.39.5