summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-10 21:08:53 +0400
committermalc <av1474@comtv.ru>2009-09-10 21:09:09 +0400
commit3c854e47703b91b70f371f7ac6532053e41bd50c (patch)
treef96726398a3bf557b7c2274ca69f911093dca4cf /audio
parentfbd5de9b69fafd9e6421772fb54e464121ffa3ac (diff)
Remove bit-rotten threshold handling
Thanks to Toshiya Takeda for bringing up an unrelated issue which led to this. Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio')
-rw-r--r--audio/fmodaudio.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/audio/fmodaudio.c b/audio/fmodaudio.c
index ab6a24212..e852e9e43 100644
--- a/audio/fmodaudio.c
+++ b/audio/fmodaudio.c
@@ -47,7 +47,6 @@ static struct {
int freq;
int nb_channels;
int bufsize;
- int threshold;
int broken_adc;
} conf = {
.nb_samples = 2048 * 2,
@@ -239,9 +238,7 @@ static int fmod_run_out (HWVoiceOut *hw)
return 0;
}
- if (!hw->pending_disable
- && nb_live
- && (conf.threshold && live <= conf.threshold)) {
+ if (!hw->pending_disable && nb_live) {
ldebug ("live=%d nb_live=%d\n", live, nb_live);
return 0;
}
@@ -664,15 +661,7 @@ static struct audio_option fmod_options[] = {
.tag = AUD_OPT_INT,
.valp = &conf.bufsize,
.descr = "(undocumented)"
- }
-#if 0
- {
- .name = "THRESHOLD",
- .tag = AUD_OPT_INT,
- .valp = &conf.threshold,
- .descr = "(undocumented)"
- }
-#endif
+ },
{ /* End of list */ }
};