mixer/Alsa: use MultiSocketMonitor
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include "OutputControl.hxx"
|
||||
#include "conf.h"
|
||||
#include "Idle.hxx"
|
||||
#include "Main.hxx"
|
||||
#include "event/Loop.hxx"
|
||||
#include "GlobalEvents.hxx"
|
||||
#include "IOThread.hxx"
|
||||
|
||||
@@ -42,6 +44,8 @@ extern "C" {
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
EventLoop *main_loop;
|
||||
|
||||
void
|
||||
GlobalEvents::Emit(gcc_unused Event event)
|
||||
{
|
||||
@@ -211,6 +215,8 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
main_loop = new EventLoop(EventLoop::Default());
|
||||
|
||||
io_thread_init();
|
||||
if (!io_thread_start(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
@@ -247,6 +253,8 @@ int main(int argc, char **argv)
|
||||
|
||||
io_thread_deinit();
|
||||
|
||||
delete main_loop;
|
||||
|
||||
config_global_finish();
|
||||
|
||||
return success ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
|
Reference in New Issue
Block a user