Skip to content

Commit 9b89944

Browse files
committed
Fix JACK/ALSA compilation
1 parent 53664b1 commit 9b89944

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

mythtv/libs/libmyth/audio/audiooutput.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ using namespace std;
2121
#ifdef USING_OSS
2222
#include "audiooutputoss.h"
2323
#endif
24-
#ifdef USE_ALSA
24+
#ifdef USING_ALSA
2525
#include "audiooutputalsa.h"
2626
#endif
2727
#if CONFIG_DARWIN
2828
#include "audiooutputca.h"
2929
#endif
30-
#ifdef USE_JACK
30+
#ifdef USING_JACK
3131
#include "audiooutputjack.h"
3232
#endif
3333
#ifdef USING_PULSEOUTPUT
@@ -107,7 +107,7 @@ AudioOutput *AudioOutput::OpenAudio(AudioSettings &settings,
107107
if (willsuspendpa)
108108
{
109109
bool ispulse = false;
110-
#ifdef USE_ALSA
110+
#ifdef USING_ALSA
111111
// Check if using ALSA, that the device doesn't contain the word
112112
// "pulse" in its hint
113113
if (main_device.startsWith("ALSA:"))
@@ -141,7 +141,7 @@ AudioOutput *AudioOutput::OpenAudio(AudioSettings &settings,
141141

142142
if (main_device.startsWith("ALSA:"))
143143
{
144-
#ifdef USE_ALSA
144+
#ifdef USING_ALSA
145145
settings.TrimDeviceType();
146146
ret = new AudioOutputALSA(settings);
147147
#else
@@ -151,7 +151,7 @@ AudioOutput *AudioOutput::OpenAudio(AudioSettings &settings,
151151
}
152152
else if (main_device.startsWith("JACK:"))
153153
{
154-
#ifdef USE_JACK
154+
#ifdef USING_JACK
155155
settings.TrimDeviceType();
156156
ret = new AudioOutputJACK(settings);
157157
#else
@@ -352,7 +352,7 @@ AudioOutput::ADCVect* AudioOutput::GetOutputList(void)
352352
bool pasuspended = PulseHandler::Suspend(PulseHandler::kPulseSuspend);
353353
#endif
354354

355-
#ifdef USE_ALSA
355+
#ifdef USING_ALSA
356356
QMap<QString, QString> *alsadevs = AudioOutputALSA::GetDevices("pcm");
357357

358358
if (!alsadevs->empty())

mythtv/libs/libmyth/libmyth.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ macx {
191191
INSTALLS += inc inc2
192192

193193
using_alsa {
194-
DEFINES += USE_ALSA
194+
DEFINES += USING_ALSA
195195
HEADERS += audio/audiooutputalsa.h
196196
SOURCES += audio/audiooutputalsa.cpp
197197
}
198198

199199
using_jack {
200-
DEFINES += USE_JACK
200+
DEFINES += USING_JACK
201201
HEADERS += audio/audiooutputjack.h
202202
SOURCES += audio/audiooutputjack.cpp
203203
}

0 commit comments

Comments
 (0)