mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Merge branch 'master' into clangen/merge-upstream-pdcurses
This commit is contained in:
commit
d9106bb9e2
@ -135,8 +135,8 @@ class PipeWireOut : public IOutput {
|
|||||||
this->buffer = buffer;
|
this->buffer = buffer;
|
||||||
if (buffer) {
|
if (buffer) {
|
||||||
struct spa_buffer* spaBuffer = buffer->buffer;
|
struct spa_buffer* spaBuffer = buffer->buffer;
|
||||||
this->writePtr = (char*) spaBuffer->data[0].data;
|
this->writePtr = (char*) spaBuffer->datas[0].data;
|
||||||
this->remaining = spaBuffer->data[0].maxsize;
|
this->remaining = spaBuffer->datas[0].maxsize;
|
||||||
this->total = this->remaining;
|
this->total = this->remaining;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -155,7 +155,7 @@ class PipeWireOut : public IOutput {
|
|||||||
}
|
}
|
||||||
void Finalize(pw_stream* stream, uint32_t stride) {
|
void Finalize(pw_stream* stream, uint32_t stride) {
|
||||||
if (this->Valid()) {
|
if (this->Valid()) {
|
||||||
spa_data& data = this->buffer->buffer->data[0];
|
spa_data& data = this->buffer->buffer->datas[0];
|
||||||
data.chunk->offset = 0;
|
data.chunk->offset = 0;
|
||||||
data.chunk->stride = stride;
|
data.chunk->stride = stride;
|
||||||
data.chunk->size = this->total - this->remaining;
|
data.chunk->size = this->total - this->remaining;
|
||||||
|
Loading…
Reference in New Issue
Block a user