mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-26 20:37:19 +00:00
btstack_audio_embedded: fix build
This commit is contained in:
parent
2336d2ed5f
commit
38b1a76138
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
### Added
|
||||
- port: CMake build files in all windows-* ports allow to use Visual Studio 2022
|
||||
- embedded audio: mono audio is played on both channels if HAVE_HAL_AUDIO_SINK_STEREO_ONLY is defined
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@ -71,7 +71,6 @@ static unsigned int output_buffer_samples;
|
||||
static volatile int input_buffer_ready;
|
||||
static volatile const int16_t * input_buffer_samples;
|
||||
static volatile uint16_t input_buffer_num_samples;
|
||||
static unsigned int output_channels;
|
||||
|
||||
static int source_active;
|
||||
static int sink_active;
|
||||
@ -141,7 +140,7 @@ static int btstack_audio_embedded_sink_init(
|
||||
|
||||
#ifdef HAVE_HAL_AUDIO_SINK_STEREO_ONLY
|
||||
// always use stereo from hal, duplicate samples if needed
|
||||
output_duplicate_samples = num_channels != 2;
|
||||
output_duplicate_samples = channels != 2;
|
||||
channels = 2;
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user