mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
Split out header files
Use separate header files Add pull-based alsasink Add audiotestsrc Implement negotiation and scheduling of audiotestsrc ! alsasink
This commit is contained in:
parent
03046301bf
commit
4b2520d173
15 changed files with 2869 additions and 287 deletions
|
|
@ -20,15 +20,14 @@
|
|||
#ifndef __SPI_BUFFER_H__
|
||||
#define __SPI_BUFFER_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <pinos/spi/result.h>
|
||||
#include <pinos/spi/params.h>
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct _SpiBuffer SpiBuffer;
|
||||
|
||||
#include <spi/defs.h>
|
||||
|
||||
typedef enum {
|
||||
SPI_META_TYPE_INVALID = 0,
|
||||
SPI_META_TYPE_HEADER,
|
||||
|
|
@ -118,12 +117,16 @@ spi_buffer_unref (SpiBuffer *buffer)
|
|||
{
|
||||
if (buffer != NULL) {
|
||||
if (--buffer->refcount == 0) {
|
||||
buffer->notify (buffer);
|
||||
if (buffer->notify)
|
||||
buffer->notify (buffer);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
return buffer;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* __SPI_BUFFER_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue