mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
More hacking
Move array and map to pinos Move more things to spa lib ControlCmd -> Message Make pinos log, use for plugins as well work on ringbuffer in alsa and nodes work on making registry with all objects
This commit is contained in:
parent
a1c0bef2ed
commit
7e46f9e3ad
81 changed files with 1831 additions and 1030 deletions
|
|
@ -32,6 +32,7 @@ extern "C" {
|
|||
#include <spa/log.h>
|
||||
#include <spa/queue.h>
|
||||
#include <spa/node.h>
|
||||
#include <spa/ringbuffer.h>
|
||||
#include <spa/audio/format.h>
|
||||
|
||||
typedef struct _SpaALSAState SpaALSAState;
|
||||
|
|
@ -52,6 +53,7 @@ typedef struct {
|
|||
struct _SpaALSABuffer {
|
||||
SpaBuffer *outbuf;
|
||||
SpaMetaHeader *h;
|
||||
SpaMetaRingbuffer *rb;
|
||||
bool outstanding;
|
||||
SpaALSABuffer *next;
|
||||
};
|
||||
|
|
@ -96,13 +98,16 @@ struct _SpaALSAState {
|
|||
size_t frame_size;
|
||||
|
||||
SpaPortInfo info;
|
||||
SpaAllocParam *params[2];
|
||||
SpaAllocParam *params[3];
|
||||
SpaAllocParamBuffers param_buffers;
|
||||
SpaAllocParamMetaEnable param_meta;
|
||||
SpaAllocParamMetaEnableRingbuffer param_meta_rb;
|
||||
SpaPortStatus status;
|
||||
|
||||
SpaALSABuffer buffers[MAX_BUFFERS];
|
||||
unsigned int n_buffers;
|
||||
bool use_ringbuffer;
|
||||
SpaALSABuffer *ringbuffer;
|
||||
|
||||
SpaQueue free;
|
||||
SpaQueue ready;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue