25#ifndef LMMS_AUDIO_SOUNDIO_H
26#define LMMS_AUDIO_SOUNDIO_H
29#include "lmmsconfig.h"
32#ifdef LMMS_HAVE_SOUNDIO
34#include <soundio/soundio.h>
67 inline static QString
name()
69 return QT_TRANSLATE_NOOP(
"AudioDeviceSetupWidget",
"soundio" );
118 void writeCallback(
int frame_count_min,
int frame_count_max);
123 return ((
AudioSoundIo *)outstream->userdata)->writeCallback(frame_count_min, frame_count_max);
126 return ((
AudioSoundIo *)outstream->userdata)->errorCallback(err);
129 return ((
AudioSoundIo *)outstream->userdata)->underflowCallback();
132 return ((
AudioSoundIo *)soundio->userdata)->onBackendDisconnect(err);
AudioEngine * audioEngine()
Definition AudioDevice.h:84
AudioDevice(const ch_cnt_t _channels, AudioEngine *audioEngine)
Definition AudioDevice.cpp:33
Definition AudioEngine.h:66
static void staticUnderflowCallback(SoundIoOutStream *outstream)
Definition AudioSoundIo.h:128
void errorCallback(int err)
Definition AudioSoundIo.cpp:243
static void staticOnBackendDisconnect(SoundIo *soundio, int err)
Definition AudioSoundIo.h:131
void writeCallback(int frame_count_min, int frame_count_max)
Definition AudioSoundIo.cpp:253
SoundIoOutStream * m_outstream
Definition AudioSoundIo.h:110
static void staticErrorCallback(SoundIoOutStream *outstream, int err)
Definition AudioSoundIo.h:125
virtual ~AudioSoundIo()
Definition AudioSoundIo.cpp:190
int m_disconnectErr
Definition AudioSoundIo.h:115
static void staticWriteCallback(SoundIoOutStream *outstream, int frame_count_min, int frame_count_max)
Definition AudioSoundIo.h:122
SoundIo * m_soundio
Definition AudioSoundIo.h:109
void startProcessingImpl() override
Definition AudioSoundIo.cpp:204
AudioSoundIo(bool &_success_ful, AudioEngine *audioEngine)
Definition AudioSoundIo.cpp:40
void stopProcessingImpl() override
Definition AudioSoundIo.cpp:229
void onBackendDisconnect(int err)
Definition AudioSoundIo.cpp:185
bool m_stopped
Definition AudioSoundIo.h:112
static QString name()
Definition AudioSoundIo.h:67
bool m_outstreamStarted
Definition AudioSoundIo.h:113
void underflowCallback()
Definition AudioSoundIo.cpp:248
Definition AudioSoundIo.h:50
void reconnectSoundIo()
Definition AudioSoundIo.cpp:302
void * m_setupWidget
Definition AudioSoundIo.h:55
void updateDevices()
Definition AudioSoundIo.cpp:307
virtual ~AudioSoundIoSetupUtil()=default
Definition ComboBoxModel.h:39
Definition LcdSpinBox.h:35
Definition AudioPortAudio.cpp:209
Definition AudioAlsa.cpp:35