Skip to content

Commit

Permalink
fix pulseaudio integration
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed May 30, 2012
1 parent 4b4c75d commit c849f7a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 71 deletions.
60 changes: 0 additions & 60 deletions mscore/mopss

This file was deleted.

4 changes: 2 additions & 2 deletions mscore/preferences.cpp
Expand Up @@ -133,9 +133,9 @@ void Preferences::init()
#else
useAlsaAudio = false;
useJackAudio = false;
usePortaudioAudio = true;
useJackMidi = false;
usePortaudioAudio = false;
usePulseAudio = true;
useJackMidi = false;
#endif

midiPorts = 2;
Expand Down
4 changes: 2 additions & 2 deletions mscore/waveview.cpp
Expand Up @@ -118,8 +118,8 @@ void WaveView::setAudio(Audio* audio)
int rn = 0;
const int n = 10000 / WSCALE;
uchar dst[n];
float* r;
float* l;
float* r = 0;
float* l = 0;
for (;;) {
for (int i = 0; i < n; ++i) {
float val = 0;
Expand Down
12 changes: 5 additions & 7 deletions msynth/synti.cpp
Expand Up @@ -64,18 +64,16 @@ MasterSynth::~MasterSynth()

void MasterSynth::init(int sampleRate)
{
bool useJackFlag = preferences.useJackAudio || preferences.useJackMidi;
bool useAlsaFlag = preferences.useAlsaAudio;
bool usePortaudioFlag = preferences.usePortaudioAudio;

if (useJackFlag || useAlsaFlag || usePortaudioFlag) {
if (preferences.useJackAudio
|| preferences.useJackMidi
|| preferences.useAlsaAudio
|| preferences.usePortaudioAudio
|| preferences.usePulseAudio) {
syntis.append(new FluidS::Fluid());
#ifdef AEOLUS
syntis.append(new Aeolus());
#endif
}
if (syntis.isEmpty())
return;
foreach(Synth* s, syntis)
s->init(sampleRate);
foreach(Synth* s, syntis) {
Expand Down

0 comments on commit c849f7a

Please sign in to comment.