Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for bluetooth headset audio stutter #8846

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Core/HW/StereoResampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ struct AudioDebugStats;

// 16 bit Stereo

#define MAX_SAMPLES (2*(1024 * 2)) // 2*64ms - had to double it for nVidia Shield which has huge buffers
#define MAX_SAMPLES (4*(1024 * 2)) // 4*64ms - we need this huge buffer to bridge Bluetooth transmission delays
#define INDEX_MASK (MAX_SAMPLES * 2 - 1)

#define LOW_WATERMARK 1680 // 40 ms
#define LOW_WATERMARK 3360 // 80 ms
#define MAX_FREQ_SHIFT 200 // per 32000 Hz
#define CONTROL_FACTOR 0.2f // in freq_shift per fifo size offset
#define CONTROL_AVG 32
Expand Down