mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: add PLC for MSBC using spandsp
Use spandsp as optional dependency for MSBC codec, for providing PLC.
This commit is contained in:
parent
90a1b35017
commit
87843366ce
5 changed files with 66 additions and 4 deletions
26
spa/plugins/bluez5/plc.h
Normal file
26
spa/plugins/bluez5/plc.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/* Spa PLC */
|
||||
/* SPDX-FileCopyrightText: Copyright © 2025 Pauli Virtanen */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#ifndef SPA_BLUEZ5_PLC_H
|
||||
#define SPA_BLUEZ5_PLC_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef HAVE_SPANDSP
|
||||
#include <spandsp.h>
|
||||
#else
|
||||
typedef struct { char dummy; } plc_state_t;
|
||||
static inline int plc_rx(plc_state_t *s, int16_t *data, int len) { return -ENOTSUP; }
|
||||
static inline int plc_fillin(plc_state_t *s, int16_t *data, int len) { return -ENOTSUP; }
|
||||
static inline plc_state_t *plc_init(plc_state_t *s)
|
||||
{
|
||||
static plc_state_t state;
|
||||
return &state;
|
||||
}
|
||||
static inline int plc_free(plc_state_t *s) { return 0; }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue