PulseAudioStream *PulseAudioDefaultDevice::startAudioStream(QSynth *synth, unsigned int sampleRate) const { PulseAudioStream *stream = new PulseAudioStream(this, synth, sampleRate); if (stream->start()) { return stream; } delete stream; return NULL; }
AudioStream *PulseAudioDefaultDevice::startAudioStream(QSynth &synth, const uint sampleRate) const { PulseAudioStream *stream = new PulseAudioStream(driver.getAudioSettings(), synth, sampleRate); if (stream->start()) return stream; delete stream; return NULL; }