mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Try smaller audio puffer, if default size fails.
This commit is contained in:
parent
a36221dea7
commit
ca0181b1b1
@ -1,6 +1,7 @@
|
|||||||
User johns
|
User johns
|
||||||
Date:
|
Date:
|
||||||
|
|
||||||
|
Try smaller audio puffer, if default size fails.
|
||||||
Fix bug: center cut-out didn't use cut off pixels.
|
Fix bug: center cut-out didn't use cut off pixels.
|
||||||
Fix bug #2058: support for Make.plgcfg.
|
Fix bug #2058: support for Make.plgcfg.
|
||||||
Fix for compile with vdr 2.1.10, for older vdr versions.
|
Fix for compile with vdr 2.1.10, for older vdr versions.
|
||||||
|
8
audio.c
8
audio.c
@ -1237,6 +1237,13 @@ static int AlsaSetup(int *freq, int *channels, int passthrough)
|
|||||||
AlsaUseMmap ? SND_PCM_ACCESS_MMAP_INTERLEAVED :
|
AlsaUseMmap ? SND_PCM_ACCESS_MMAP_INTERLEAVED :
|
||||||
SND_PCM_ACCESS_RW_INTERLEAVED, *channels, *freq, 1,
|
SND_PCM_ACCESS_RW_INTERLEAVED, *channels, *freq, 1,
|
||||||
96 * 1000))) {
|
96 * 1000))) {
|
||||||
|
// try reduced buffer size (needed for sunxi)
|
||||||
|
// FIXME: alternativ make this configurable
|
||||||
|
if ((err =
|
||||||
|
snd_pcm_set_params(AlsaPCMHandle, SND_PCM_FORMAT_S16,
|
||||||
|
AlsaUseMmap ? SND_PCM_ACCESS_MMAP_INTERLEAVED :
|
||||||
|
SND_PCM_ACCESS_RW_INTERLEAVED, *channels, *freq, 1,
|
||||||
|
72 * 1000))) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if ( err == -EBADFD ) {
|
if ( err == -EBADFD ) {
|
||||||
@ -1253,6 +1260,7 @@ static int AlsaSetup(int *freq, int *channels, int passthrough)
|
|||||||
// FIXME: must stop sound, AudioChannels ... invalid
|
// FIXME: must stop sound, AudioChannels ... invalid
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user