mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
Fixed 'unreferenced local variable' warnings when building with FMOD Studio API
This commit is contained in:
parent
764705a8e0
commit
c88eec3d73
1 changed files with 3 additions and 3 deletions
|
@ -1371,11 +1371,8 @@ void FMODSoundRenderer::PrintStatus()
|
|||
{
|
||||
FMOD_OUTPUTTYPE output;
|
||||
FMOD_SPEAKERMODE speakermode;
|
||||
FMOD_SOUND_FORMAT format;
|
||||
FMOD_DSP_RESAMPLER resampler;
|
||||
int driver;
|
||||
int samplerate;
|
||||
int numoutputchannels;
|
||||
unsigned int bufferlength;
|
||||
int numbuffers;
|
||||
|
||||
|
@ -1414,6 +1411,9 @@ void FMODSoundRenderer::PrintStatus()
|
|||
#endif
|
||||
}
|
||||
#if !FMOD_STUDIO
|
||||
FMOD_SOUND_FORMAT format;
|
||||
FMOD_DSP_RESAMPLER resampler;
|
||||
int numoutputchannels;
|
||||
if (FMOD_OK == Sys->getSoftwareFormat(&samplerate, &format, &numoutputchannels, NULL, &resampler, NULL))
|
||||
{
|
||||
Printf (TEXTCOLOR_LIGHTBLUE "Software mixer sample rate: " TEXTCOLOR_GREEN "%d\n", samplerate);
|
||||
|
|
Loading…
Reference in a new issue