summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_adpcm.c
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo@alsa-project.org>2001-03-08 14:21:15 +0000
committerAbramo Bagnara <abramo@alsa-project.org>2001-03-08 14:21:15 +0000
commit5e2c5cab92c93d1b62e8ea530736cbf9e1721f19 (patch)
tree13209552b0e4563c32ab269b5dd8a79203ea9983 /src/pcm/pcm_adpcm.c
parentc76af03f4e38d0d4895389dde83b2be95fedd097 (diff)
Removed obsolete code
Diffstat (limited to 'src/pcm/pcm_adpcm.c')
-rw-r--r--src/pcm/pcm_adpcm.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/pcm/pcm_adpcm.c b/src/pcm/pcm_adpcm.c
index d0ee3abc..70d25e09 100644
--- a/src/pcm/pcm_adpcm.c
+++ b/src/pcm/pcm_adpcm.c
@@ -210,15 +210,6 @@ void snd_pcm_adpcm_decode(const snd_pcm_channel_area_t *dst_areas,
snd_pcm_uframes_t frames1;
const snd_pcm_channel_area_t *src_area = &src_areas[channel];
const snd_pcm_channel_area_t *dst_area = &dst_areas[channel];
-#if 0
- if (!src_area->enabled) {
- if (dst_area->wanted)
- snd_pcm_area_silence(dst_area, dst_offset, frames, dst_sfmt);
- dst_area->enabled = 0;
- continue;
- }
- dst_area->enabled = 1;
-#endif
srcbit = src_area->first + src_area->step * src_offset;
src = src_area->addr + srcbit / 8;
srcbit %= 8;
@@ -272,15 +263,6 @@ void snd_pcm_adpcm_encode(const snd_pcm_channel_area_t *dst_areas,
snd_pcm_uframes_t frames1;
const snd_pcm_channel_area_t *src_area = &src_areas[channel];
const snd_pcm_channel_area_t *dst_area = &dst_areas[channel];
-#if 0
- if (!src_area->enabled) {
- if (dst_area->wanted)
- snd_pcm_area_silence(dst_area, dst_offset, frames, dst_sfmt);
- dst_area->enabled = 0;
- continue;
- }
- dst_area->enabled = 1;
-#endif
src = snd_pcm_channel_area_addr(src_area, src_offset);
src_step = snd_pcm_channel_area_step(src_area);
dstbit = dst_area->first + dst_area->step * dst_offset;