mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-13 06:57:07 +03:00
Added i2c tools
This commit is contained in:
@@ -613,14 +613,7 @@ 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) );
|
||||
}
|
||||
|
||||
char * get_output_state_desc(output_state state){
|
||||
switch (state) {
|
||||
case OUTPUT_OFF:
|
||||
|
||||
Reference in New Issue
Block a user