| // Copyright 2019 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #include <lib/async-loop/cpp/loop.h> | |
| #include <lib/async-loop/default.h> | |
| #include <lib/syslog/cpp/log_settings.h> | |
| #include <lib/syslog/cpp/macros.h> | |
| #include "src/media/audio/virtual_audio_service/virtual_audio_service_impl.h" | |
| int main(int argc, const char** argv) { | |
| syslog::SetTags({"virtual_audio_service"}); | |
| async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread); | |
| virtual_audio::VirtualAudioServiceImpl impl( | |
| sys::ComponentContext::CreateAndServeOutgoingDirectory()); | |
| if (impl.Init() != ZX_OK) { | |
| return -1; | |
| } | |
| loop.Run(); | |
| return 0; | |
| } |