mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 13:37:03 +03:00
BT ring buffering
This commit is contained in:
@@ -615,3 +615,11 @@ uint8_t get_bytes_per_frame(output_format fmt)
|
||||
assert(bpf>0);
|
||||
return bpf;
|
||||
}
|
||||
/****************************************************************************************
|
||||
* Wait for a duration based on a frame count
|
||||
*/
|
||||
extern struct outputstate output;
|
||||
void wait_for_frames(size_t frames, uint8_t pct)
|
||||
{
|
||||
usleep((1000* frames/output.current_sample_rate*pct/100) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user