Stand vor Protokollumbau
This commit is contained in:
@@ -243,6 +243,8 @@ void audio_thread(void *arg1, void *arg2, void *arg3)
|
||||
continue;
|
||||
}
|
||||
|
||||
ssize_t file_size = fs_get_audio_data_len(&file);
|
||||
|
||||
LOG_INF("Playing: %s", filename);
|
||||
io_status(true);
|
||||
|
||||
@@ -269,7 +271,7 @@ void audio_thread(void *arg1, void *arg2, void *arg3)
|
||||
break;
|
||||
}
|
||||
|
||||
ssize_t bytes_read = fs_read(&file, block, AUDIO_BLOCK_SIZE / 2);
|
||||
ssize_t bytes_read = fs_read_audio(&file, block, AUDIO_BLOCK_SIZE / 2, file_size);
|
||||
|
||||
if (bytes_read <= 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user