|
@@ -642,6 +642,7 @@ void Application::Schedule(std::function<void()> callback) {
|
|
|
// The Main Loop controls the chat state and websocket connection
|
|
// The Main Loop controls the chat state and websocket connection
|
|
|
// If other tasks need to access the websocket or chat state,
|
|
// If other tasks need to access the websocket or chat state,
|
|
|
// they should use Schedule to call this function
|
|
// they should use Schedule to call this function
|
|
|
|
|
+//主循环切换首发音频
|
|
|
void Application::MainLoop() {
|
|
void Application::MainLoop() {
|
|
|
while (true) {
|
|
while (true) {
|
|
|
auto bits = xEventGroupWaitBits(event_group_,
|
|
auto bits = xEventGroupWaitBits(event_group_,
|