From 8df953159ce807d7c05e4af592412c7efc7eea4e Mon Sep 17 00:00:00 2001 From: ws Date: Fri, 17 May 2013 11:37:27 +0200 Subject: [PATCH] use alsa samplerate also for pulseaudio and portaudio --- mscore/pa.cpp | 2 +- mscore/pulseaudio.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mscore/pa.cpp b/mscore/pa.cpp index c7e343b58f7b2..d1c145bd9aa18 100644 --- a/mscore/pa.cpp +++ b/mscore/pa.cpp @@ -55,7 +55,7 @@ int paCallback(const void*, void* out, long unsigned frames, Portaudio::Portaudio(Seq* s) : Driver(s) { - _sampleRate = 48000; + _sampleRate = preferences.alsaSampleRate; initialized = false; state = Seq::TRANSPORT_STOP; seekflag = false; diff --git a/mscore/pulseaudio.cpp b/mscore/pulseaudio.cpp index 4e2b25512d055..2045f40e1fca9 100644 --- a/mscore/pulseaudio.cpp +++ b/mscore/pulseaudio.cpp @@ -14,6 +14,7 @@ #include "seq.h" #include #include "driver.h" +#include "preferences.h" namespace Ms { @@ -70,7 +71,7 @@ void PulseAudio::paCallback(pa_stream* s, size_t len, void* data) PulseAudio::PulseAudio(Seq* s) : Driver(s) { - _sampleRate = 48000; + _sampleRate = preferences.alsaSampleRate; state = Seq::TRANSPORT_STOP; runState = 0; }