Fixed 'unreferenced local variable' warnings when building with FMOD Studio API

This commit is contained in:
alexey.lysiuk 2016-09-06 10:23:12 +03:00 committed by Christoph Oelckers
parent 764705a8e0
commit c88eec3d73

View file

@ -1371,11 +1371,8 @@ void FMODSoundRenderer::PrintStatus()
{ {
FMOD_OUTPUTTYPE output; FMOD_OUTPUTTYPE output;
FMOD_SPEAKERMODE speakermode; FMOD_SPEAKERMODE speakermode;
FMOD_SOUND_FORMAT format;
FMOD_DSP_RESAMPLER resampler;
int driver; int driver;
int samplerate; int samplerate;
int numoutputchannels;
unsigned int bufferlength; unsigned int bufferlength;
int numbuffers; int numbuffers;
@ -1414,6 +1411,9 @@ void FMODSoundRenderer::PrintStatus()
#endif #endif
} }
#if !FMOD_STUDIO #if !FMOD_STUDIO
FMOD_SOUND_FORMAT format;
FMOD_DSP_RESAMPLER resampler;
int numoutputchannels;
if (FMOD_OK == Sys->getSoftwareFormat(&samplerate, &format, &numoutputchannels, NULL, &resampler, NULL)) if (FMOD_OK == Sys->getSoftwareFormat(&samplerate, &format, &numoutputchannels, NULL, &resampler, NULL))
{ {
Printf (TEXTCOLOR_LIGHTBLUE "Software mixer sample rate: " TEXTCOLOR_GREEN "%d\n", samplerate); Printf (TEXTCOLOR_LIGHTBLUE "Software mixer sample rate: " TEXTCOLOR_GREEN "%d\n", samplerate);