test/*: use class EventThread instead of ScopeIOThread

This commit is contained in:
Max Kellermann
2017-02-10 22:14:07 +01:00
parent 115af4f565
commit d1456ae039
10 changed files with 37 additions and 83 deletions

View File

@@ -26,8 +26,7 @@
#include "config/ConfigOption.hxx"
#include "Idle.hxx"
#include "Main.hxx"
#include "event/Loop.hxx"
#include "ScopeIOThread.hxx"
#include "event/Thread.hxx"
#include "fs/Path.hxx"
#include "AudioParser.hxx"
#include "ReplayGainConfig.hxx"
@@ -136,14 +135,14 @@ try {
config_global_init();
ReadConfigFile(config_path);
EventLoop event_loop;
const ScopeIOThread io_thread;
EventThread io_thread;
io_thread.Start();
/* initialize the audio output */
DummyAudioOutputClient client;
AudioOutput *ao = load_audio_output(event_loop, client, argv[2]);
AudioOutput *ao = load_audio_output(io_thread.GetEventLoop(), client,
argv[2]);
/* parse the audio format */