mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
add some constants for max samples
This commit is contained in:
parent
605a0a6f97
commit
2fa97daa24
8 changed files with 31 additions and 22 deletions
|
|
@ -47,6 +47,7 @@
|
|||
#define DEFAULT_RATE 44100
|
||||
#define DEFAULT_CHANNELS 2
|
||||
|
||||
#define MAX_SAMPLES 1024
|
||||
#define MAX_BUFFERS 32
|
||||
|
||||
struct impl;
|
||||
|
|
@ -425,7 +426,7 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
}
|
||||
else {
|
||||
buffers = 1;
|
||||
size = 2048 * other->stride;
|
||||
size = MAX_SAMPLES * 2 * other->stride;
|
||||
}
|
||||
|
||||
param = spa_pod_builder_add_object(&b,
|
||||
|
|
@ -755,7 +756,7 @@ static int impl_node_process(void *object)
|
|||
if (this->io_position) {
|
||||
max = this->io_position->clock.duration;
|
||||
} else {
|
||||
max = 1024;
|
||||
max = maxsize / sizeof(float);
|
||||
}
|
||||
|
||||
switch (this->mode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue