summaryrefslogtreecommitdiff
path: root/plugins/alsa
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-21 20:22:13 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-21 20:22:13 +0200
commitfe036a2caa5fee28dce9babdab215d3bdb2b101d (patch)
treebb346e0974ac50202c56ffa1d829812bd8c95196 /plugins/alsa
parent10b6c0579bf3757f5f3fbd740d5439e26bf1b77d (diff)
reset streamer after sound reinit, to prevent misaligned output on sampleformat changes
Diffstat (limited to 'plugins/alsa')
-rw-r--r--plugins/alsa/alsa.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c
index 25573f5b..c789e9cb 100644
--- a/plugins/alsa/alsa.c
+++ b/plugins/alsa/alsa.c
@@ -55,32 +55,9 @@ static snd_pcm_uframes_t req_period_size;
static int conf_alsa_resample = 1;
static char conf_alsa_soundcard[100] = "default";
-
-//static snd_async_handler_t *pcm_callback;
-
static int
palsa_callback (char *stream, int len);
-#if 0
-static void
-alsa_callback (snd_async_handler_t *pcm_callback) {
- snd_pcm_t *pcm_handle = snd_async_handler_get_pcm(pcm_callback);
- snd_pcm_sframes_t avail;
- int err;
- printf ("alsa_callback\n");
-
- avail = snd_pcm_avail_update(pcm_handle);
- while (avail >= period_size) {
- char buf[avail * 4];
- palsa_callback (buf, avail * 4);
- if ((err = snd_pcm_writei (pcm_handle, buf, period_size)) < 0) {
- perror ("snd_pcm_writei");
- }
- avail = snd_pcm_avail_update(pcm_handle);
- }
-}
-#endif
-
static void
palsa_thread (void *context);