mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
move some staks to external memory
This commit is contained in:
@@ -116,6 +116,10 @@ static void *decode_thread() {
|
||||
usleep(100000);
|
||||
}
|
||||
}
|
||||
|
||||
#if EMBEDDED
|
||||
deregister_external();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -284,3 +284,16 @@ void register_external(void) {
|
||||
LOG_INFO("Initializing AirPlay sink");
|
||||
#endif
|
||||
}
|
||||
|
||||
void deregister_external(void) {
|
||||
#ifdef CONFIG_BT_SINK
|
||||
if (!strcasestr(output.device, "BT ")) {
|
||||
bt_sink_deinit();
|
||||
LOG_INFO("Stopping BT sink");
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_AIRPLAY_SINK
|
||||
raop_sink_deinit();
|
||||
LOG_INFO("Stopping AirPlay sink");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -36,9 +36,13 @@ typedef unsigned long long u64_t;
|
||||
#define gettime_ms _gettime_ms_
|
||||
#define mutex_create_p(m) mutex_create(m)
|
||||
|
||||
uint32_t _gettime_ms_(void);
|
||||
int pthread_create_name(pthread_t *thread, _CONST pthread_attr_t *attr,
|
||||
uint32_t _gettime_ms_(void);
|
||||
|
||||
int pthread_create_name(pthread_t *thread, _CONST pthread_attr_t *attr,
|
||||
void *(*start_routine)( void * ), void *arg, char *name);
|
||||
void register_external(void);
|
||||
|
||||
// these are here as they can be #define to nothing
|
||||
void register_external(void);
|
||||
void deregister_external(void);
|
||||
|
||||
#endif // EMBEDDED_H
|
||||
|
||||
@@ -631,7 +631,6 @@ static void slimproto_run() {
|
||||
#endif
|
||||
last = now;
|
||||
|
||||
|
||||
LOCK_S;
|
||||
status.stream_full = _buf_used(streambuf);
|
||||
status.stream_size = streambuf->size;
|
||||
|
||||
Reference in New Issue
Block a user