mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
increase amount of datas in a buffer
This commit is contained in:
parent
dfd3bd84b4
commit
6e03b4005d
3 changed files with 5 additions and 7 deletions
|
|
@ -48,7 +48,7 @@
|
||||||
#define MIN_BUFFERS 3u
|
#define MIN_BUFFERS 3u
|
||||||
#define MAX_BUFFERS 64u
|
#define MAX_BUFFERS 64u
|
||||||
|
|
||||||
#define MAX_CHANNELS 32
|
#define MAX_CHANNELS 64
|
||||||
#define MAX_RATE (48000*8)
|
#define MAX_RATE (48000*8)
|
||||||
|
|
||||||
#define MIN_PERIOD 64
|
#define MIN_PERIOD 64
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
#define DEFAULT_SAMPLES 8192
|
#define DEFAULT_SAMPLES 8192
|
||||||
#define MAX_BUFFERS 32
|
#define MAX_BUFFERS 32
|
||||||
#define MAX_DATAS 32
|
#define MAX_DATAS 64
|
||||||
|
|
||||||
#define DEFAULT_CONTROL_BUFFER_SIZE 32768
|
#define DEFAULT_CONTROL_BUFFER_SIZE 32768
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,9 @@
|
||||||
#define DEFAULT_CHANNELS 2
|
#define DEFAULT_CHANNELS 2
|
||||||
|
|
||||||
#define MAX_SAMPLES 8192
|
#define MAX_SAMPLES 8192
|
||||||
#define MAX_BUFFERS 64
|
#define MAX_BUFFERS 32
|
||||||
#define MAX_ALIGN 16
|
#define MAX_ALIGN 16
|
||||||
#define MAX_DATAS 32
|
#define MAX_DATAS 64
|
||||||
#define MAX_PORTS 128
|
|
||||||
|
|
||||||
#define PROP_DEFAULT_TRUNCATE false
|
#define PROP_DEFAULT_TRUNCATE false
|
||||||
#define PROP_DEFAULT_DITHER 0
|
#define PROP_DEFAULT_DITHER 0
|
||||||
|
|
@ -617,8 +616,7 @@ static int port_set_format(void *object,
|
||||||
|
|
||||||
if (SPA_AUDIO_FORMAT_IS_PLANAR(info.info.raw.format)) {
|
if (SPA_AUDIO_FORMAT_IS_PLANAR(info.info.raw.format)) {
|
||||||
port->blocks = info.info.raw.channels;
|
port->blocks = info.info.raw.channels;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
port->stride *= info.info.raw.channels;
|
port->stride *= info.info.raw.channels;
|
||||||
port->blocks = 1;
|
port->blocks = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue