small fixes (#109)

This commit is contained in:
luar123
2025-01-01 22:32:05 +01:00
committed by GitHub
Unverified
parent 069a00d456
commit bcce58b725
6 changed files with 40 additions and 4 deletions

View File

@@ -1,12 +1,16 @@
#ifndef __PLAYER_H__
#define __PLAYER_H__
#include "driver/i2s.h"
#include "driver/i2s_std.h"
#include "esp_types.h"
#include "freertos/FreeRTOS.h"
#include "sdkconfig.h"
#include "snapcast.h"
#ifdef __cplusplus
extern "C" {
#endif
#define I2S_PORT I2S_NUM_0
// TODO: maybe calculate this dynamically based on chunk duration and buffer
@@ -77,5 +81,7 @@ int32_t get_diff_to_server(int64_t *tDiff);
int32_t server_now(int64_t *sNow, int64_t *diff2Server);
int32_t pcm_chunk_queue_msg_waiting(void);
#ifdef __cplusplus
}
#endif
#endif // __PLAYER_H__