Skip to content

Commit

Permalink
use alsa samplerate also for pulseaudio and portaudio
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed May 21, 2013
1 parent 59b37a5 commit 8df9531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mscore/pa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion mscore/pulseaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "seq.h"
#include <pulse/pulseaudio.h>
#include "driver.h"
#include "preferences.h"

namespace Ms {

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 8df9531

Please sign in to comment.