summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-01-25 15:31:18 +0100
committerJohns <johns98@gmx.net>2012-01-25 15:31:18 +0100
commite3681812bdc066b3c6bf10b416483356c7fc5e70 (patch)
tree4bd7890065bc1594cc6239df36e44fb7be387791 /audio.c
parent9d145221219eccc4748f5bd54ee7fa259421fd0b (diff)
downloadvdr-plugin-softhddevice-e3681812bdc066b3c6bf10b416483356c7fc5e70.tar.gz
vdr-plugin-softhddevice-e3681812bdc066b3c6bf10b416483356c7fc5e70.tar.bz2
Remove pass-through test code.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/audio.c b/audio.c
index 0f27915..5ccb924 100644
--- a/audio.c
+++ b/audio.c
@@ -1148,6 +1148,7 @@ static void AlsaExit(void)
RingBufferDel(AlsaRingBuffer);
AlsaRingBuffer = NULL;
}
+ AlsaFlushBuffer = 0;
}
/**
@@ -1750,6 +1751,7 @@ static void OssExit(void)
close(OssMixerFildes);
OssMixerFildes = -1;
}
+ OssFlushBuffer = 0;
}
/**
@@ -1906,17 +1908,6 @@ static void *AudioPlayHandlerThread(void *dummy)
}
Debug(3, "audio: thread channels %d sample-rate %d hz\n",
AudioChannels, AudioSampleRate);
- if (1) {
- int16_t buf[6144 / 2];
-
- buf[0] = htole16(0xF872); // iec 61937 sync word
- buf[1] = htole16(0x4E1F);
- buf[2] = htole16((7 << 5) << 8 | 0x00);
- buf[3] = htole16(0x0000);
- memset(buf + 4, 0, 6144 - 8);
-
- AlsaEnqueue(buf, 6144);
- }
#endif
}
#endif