/* * Copyright (c) 2015 Andrew Kelley * * This file is part of libsoundio, which is MIT licensed. * See http://opensource.org/licenses/MIT */ #ifndef SOUNDIO_ALSA_HPP #define SOUNDIO_ALSA_HPP #include "os.hpp" #include "atomics.hpp" int soundio_alsa_init(struct SoundIoPrivate *si); struct SoundIoDeviceAlsa { }; struct SoundIoAlsa { SoundIoOsMutex *mutex; SoundIoOsCond *cond; struct SoundIoOsThread *thread; atomic_flag abort_flag; int notify_fd; int notify_wd; atomic_bool have_devices_flag; int notify_pipe_fd[2]; // this one is ready to be read with flush_events. protected by mutex struct SoundIoDevicesInfo *ready_devices_info; }; #endif