push before merge

This commit is contained in:
Ryzerth
2020-12-26 00:42:15 +01:00
parent 09498f3b18
commit 9cac95fd82
9 changed files with 319 additions and 6 deletions

View File

@ -36,7 +36,6 @@ public:
stereoRB.init(_stream->sinkOut);
// Initialize PortAudio
Pa_Initialize();
devCount = Pa_GetDeviceCount();
devId = Pa_GetDefaultOutputDevice();
const PaDeviceInfo *deviceInfo;
@ -239,11 +238,14 @@ public:
this->name = name;
provider.create = create_sink;
provider.ctx = this;
Pa_Initialize();
sigpath::sinkManager.registerSinkProvider("Audio", provider);
}
~AudioSinkModule() {
Pa_Terminate();
}
void enable() {