mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-30 16:20:24 +00:00
sbc: fix unused parameter compile error
This commit is contained in:
parent
d6ec9a32b8
commit
6276d22a9a
@ -89,7 +89,7 @@ typedef struct {
|
||||
void btstack_sbc_decoder_init(btstack_sbc_decoder_state_t * state, btstack_sbc_mode_t mode, void (*callback)(int16_t * data, int num_samples, int num_channels, int sample_rate, void * context), void * context);
|
||||
|
||||
/**
|
||||
* @brief Process received SCO data
|
||||
* @brief Process received SBC data
|
||||
* @param state
|
||||
* @param packet_status_flag from SCO packet: 0 = OK, 1 = possibly invalid data, 2 = no data received, 3 = data partially lost
|
||||
* @param buffer
|
||||
|
@ -209,7 +209,7 @@ static void append_received_sbc_data(bludroid_decoder_state_t * state, uint8_t *
|
||||
}
|
||||
|
||||
|
||||
static void btstack_sbc_decoder_process_sbc_data(btstack_sbc_decoder_state_t * state, int packet_status_flag, uint8_t * buffer, int size){
|
||||
static void btstack_sbc_decoder_process_sbc_data(btstack_sbc_decoder_state_t * state, uint8_t * buffer, int size){
|
||||
bludroid_decoder_state_t * decoder_state = (bludroid_decoder_state_t*)state->decoder_state;
|
||||
int input_bytes_to_process = size;
|
||||
int keep_decoding = 1;
|
||||
@ -480,6 +480,6 @@ void btstack_sbc_decoder_process_data(btstack_sbc_decoder_state_t * state, int p
|
||||
if (state->mode == SBC_MODE_mSBC){
|
||||
btstack_sbc_decoder_process_msbc_data(state, packet_status_flag, buffer, size);
|
||||
} else {
|
||||
btstack_sbc_decoder_process_sbc_data(state, packet_status_flag, buffer, size);
|
||||
btstack_sbc_decoder_process_sbc_data(state, buffer, size);
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ SBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o)
|
||||
CFLAGS = -g -Wall -I. -I../ -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/src/classic -I${BTSTACK_ROOT}/platform/posix
|
||||
CFLAGS += -I${SBC_DECODER_ROOT}/include
|
||||
CFLAGS += -I${SBC_ENCODER_ROOT}/include
|
||||
CFLAGS += -Werror=unused-parameter
|
||||
#CFLAGS += -D PRINT_SAMPLES -D PRINT_SCALEFACTORS -D OI_DEBUG -D TRACE_EXECUTION
|
||||
LDFLAGS += -lCppUTest -lCppUTestExt
|
||||
VPATH += ${SBC_DECODER_ROOT}/srce
|
||||
|
@ -91,6 +91,7 @@ static ssize_t __read(int fd, void *buf, size_t count){
|
||||
}
|
||||
|
||||
static void handle_pcm_data(int16_t * data, int num_samples, int num_channels, int sample_rate, void * context){
|
||||
UNUSED(context);
|
||||
if (!wav_writer_opened){
|
||||
wav_writer_opened = 1;
|
||||
wav_writer_open(wav_filename, num_channels, sample_rate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user