OSDN Git Service

pcm: fix the period_size for direct plugins (dmix, dsnoop, dshare)
authorJaroslav Kysela <perex@perex.cz>
Mon, 14 Oct 2019 07:34:35 +0000 (09:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 14 Oct 2019 07:35:08 +0000 (09:35 +0200)
BugLink: https://github.com/alsa-project/alsa-lib/issues/8
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_dmix.c
src/pcm/pcm_dshare.c
src/pcm/pcm_dsnoop.c

index 274726e..d533f40 100644 (file)
@@ -1248,10 +1248,10 @@ pcm.name {
                channels INT
                period_time INT # in usec
                # or
-               period_size INT # in bytes
+               period_size INT # in frames
                buffer_time INT # in usec
                # or
-               buffer_size INT # in bytes
+               buffer_size INT # in frames
                periods INT     # when buffer_size or buffer_time is not specified
        }
        bindings {              # note: this is client independent!!!
index bf28db9..59448cf 100644 (file)
@@ -940,10 +940,10 @@ pcm.name {
                channels INT
                period_time INT # in usec
                # or
-               period_size INT # in bytes
+               period_size INT # in frames
                buffer_time INT # in usec
                # or
-               buffer_size INT # in bytes
+               buffer_size INT # in frames
                periods INT     # when buffer_size or buffer_time is not specified
        }
        bindings {              # note: this is client independent!!!
index 58b1e53..24f472c 100644 (file)
@@ -791,10 +791,10 @@ pcm.name {
                channels INT
                period_time INT # in usec
                # or
-               period_size INT # in bytes
+               period_size INT # in frames
                buffer_time INT # in usec
                # or
-               buffer_size INT # in bytes
+               buffer_size INT # in frames
                periods INT     # when buffer_size or buffer_time is not specified
        }
        bindings {              # note: this is client independent!!!