mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 16:56:00 +00:00
increase amount of datas in a buffer
This commit is contained in:
parent
dfd3bd84b4
commit
6e03b4005d
|
@ -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…
Reference in a new issue