Esempio n. 1
0
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;
}
Esempio n. 2
0
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;
}