]> git.alsa-project.org Git - alsa-lib.git/commitdiff
dmix/dshare/dsnoop plugin: enable slowptr by default
authorClemens Ladisch <clemens@ladisch.de>
Mon, 21 May 2007 07:13:19 +0000 (09:13 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 21 May 2007 07:13:19 +0000 (09:13 +0200)
Enabling the slowptr options does not make snd_pcm_delay() and related
functions much slower than they would have been with a hw device, while
disabling this option greatly reduces the accuracy of those functions,
thus creating more jitter in any media player application that
synchronizes its output to the sound device.

Therefore, it is preferrable to have this option enabled by default.

src/pcm/pcm_direct.c

index 755ae1677313172e882f1093852ab7b47bf1572a..4dd3d9f6a559c7f2d26f2b5a444db856acc57a78 100644 (file)
@@ -1528,7 +1528,7 @@ int snd_pcm_direct_parse_open_conf(snd_config_t *root, snd_config_t *conf,
        rec->ipc_key = 0;
        rec->ipc_perm = 0600;
        rec->ipc_gid = -1;
-       rec->slowptr = 0;
+       rec->slowptr = 1;
        rec->max_periods = 0;
 
        /* read defaults */