提交 15d4a723 编写于 作者: S Stefan Weil 提交者: malc

fmodaudio: Remove unused variable 'bits16' (reported by cppcheck)

The variable is assigned a value which is never used,
so remove variable and assignment.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: Nmalc <av1474@comtv.ru>
上级 3f5bd4e1
...@@ -343,7 +343,7 @@ static void fmod_fini_out (HWVoiceOut *hw) ...@@ -343,7 +343,7 @@ static void fmod_fini_out (HWVoiceOut *hw)
static int fmod_init_out (HWVoiceOut *hw, struct audsettings *as) static int fmod_init_out (HWVoiceOut *hw, struct audsettings *as)
{ {
int bits16, mode, channel; int mode, channel;
FMODVoiceOut *fmd = (FMODVoiceOut *) hw; FMODVoiceOut *fmd = (FMODVoiceOut *) hw;
struct audsettings obt_as = *as; struct audsettings obt_as = *as;
...@@ -374,7 +374,6 @@ static int fmod_init_out (HWVoiceOut *hw, struct audsettings *as) ...@@ -374,7 +374,6 @@ static int fmod_init_out (HWVoiceOut *hw, struct audsettings *as)
/* FMOD always operates on little endian frames? */ /* FMOD always operates on little endian frames? */
obt_as.endianness = 0; obt_as.endianness = 0;
audio_pcm_init_info (&hw->info, &obt_as); audio_pcm_init_info (&hw->info, &obt_as);
bits16 = (mode & FSOUND_16BITS) != 0;
hw->samples = conf.nb_samples; hw->samples = conf.nb_samples;
return 0; return 0;
} }
...@@ -405,7 +404,7 @@ static int fmod_ctl_out (HWVoiceOut *hw, int cmd, ...) ...@@ -405,7 +404,7 @@ static int fmod_ctl_out (HWVoiceOut *hw, int cmd, ...)
static int fmod_init_in (HWVoiceIn *hw, struct audsettings *as) static int fmod_init_in (HWVoiceIn *hw, struct audsettings *as)
{ {
int bits16, mode; int mode;
FMODVoiceIn *fmd = (FMODVoiceIn *) hw; FMODVoiceIn *fmd = (FMODVoiceIn *) hw;
struct audsettings obt_as = *as; struct audsettings obt_as = *as;
...@@ -432,7 +431,6 @@ static int fmod_init_in (HWVoiceIn *hw, struct audsettings *as) ...@@ -432,7 +431,6 @@ static int fmod_init_in (HWVoiceIn *hw, struct audsettings *as)
/* FMOD always operates on little endian frames? */ /* FMOD always operates on little endian frames? */
obt_as.endianness = 0; obt_as.endianness = 0;
audio_pcm_init_info (&hw->info, &obt_as); audio_pcm_init_info (&hw->info, &obt_as);
bits16 = (mode & FSOUND_16BITS) != 0;
hw->samples = conf.nb_samples; hw->samples = conf.nb_samples;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册