diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2010-09-04 11:58:05 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2010-09-04 12:49:26 +0100 |
commit | a65825fa45a1c393899eeb1e4532236964ea3a2c (patch) | |
tree | eb627bdb17193019743212c443ece1a8f1162225 /src/modules/module-volume-restore.c | |
parent | 8748ebdad3c15dae3cafe6a0ae9227fc3bb9f7ad (diff) |
alsa: Set the rewind safeguard proportionally to sample spec
Currently when rewinding alsa, a fixed value of 256 bytes is used,
which represents 1.33ms @ 48kHz (2ch, 16bit). This is typically fine
and due to DMA constraints we would not want to rewind less than this.
However with more demanding sample specs, (e.g. 8ch 192kHz 32bit)
256 bytes is likely not sufficient, so calculate what 1.33ms would
be and use which ever value is bigger.
Discussed with David Henningsson and Pierre-Louis Bossart here:
http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/7286
Diffstat (limited to 'src/modules/module-volume-restore.c')
0 files changed, 0 insertions, 0 deletions