diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-04-15 12:42:29 +0100 |
|---|---|---|
| committer | cah <cah@ableton.com> | 2019-12-03 11:16:07 +0100 |
| commit | 8b9951729c312893e88dcc80f546fb531fc9928c (patch) | |
| tree | 18557b919769b9314dd37ac064a5917a7ee783ec /RtAudio.h | |
| parent | 66fd3929981693fb335737a28f47678f168f749b (diff) | |
Try to support > 2 output channels with PulseAudio.
Diffstat (limited to 'RtAudio.h')
| -rw-r--r-- | RtAudio.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1099,15 +1099,25 @@ public: unsigned int firstChannel, unsigned int sampleRate, RtAudioFormat format, unsigned int *bufferSize, RtAudio::StreamOptions *options ); + + static void sinkInfoCallback(pa_context* c, const pa_sink_info* info, int eol, void* arg); + static void contextStateCallback(pa_context* c, void* arg); + pa_threaded_mainloop* mainloop_; + int channels_; }; #endif #if defined(__LINUX_PULSE__) +struct pa_context; +struct pa_sink_info; +struct pa_threaded_mainloop; + class RtApiPulse: public RtApi { public: + RtApiPulse() : mainloop_(0), channels_(2) {} ~RtApiPulse(); RtAudio::Api getCurrentApi() { return RtAudio::LINUX_PULSE; } unsigned int getDeviceCount( void ); |
