increase amount of datas in a buffer

This commit is contained in:
Wim Taymans 2020-07-01 11:41:46 +02:00
parent dfd3bd84b4
commit 6e03b4005d
3 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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;
} }