Add mapper

Ger rid of static ids for interfaces and replace with something we can
register dynamically
Implement logger.
This commit is contained in:
Wim Taymans 2016-10-07 13:14:32 +02:00
parent a68e5d5124
commit fc4fd1424a
43 changed files with 997 additions and 360 deletions

View file

@ -28,6 +28,8 @@ extern "C" {
#include <asoundlib.h>
#include <spa/id-map.h>
#include <spa/log.h>
#include <spa/queue.h>
#include <spa/node.h>
#include <spa/audio/format.h>
@ -54,11 +56,20 @@ struct _SpaALSABuffer {
SpaALSABuffer *next;
};
typedef struct {
uint32_t node;
uint32_t clock;
} URI;
struct _SpaALSAState {
SpaHandle handle;
SpaNode node;
SpaClock clock;
URI uri;
SpaIDMap *map;
SpaLog *log;
snd_pcm_stream_t stream;
snd_output_t *output;