Ticket #4412: 4412-dsound.patch
File 4412-dsound.patch, 4.1 KB (added by , 14 years ago) |
---|
-
configure
1322 1322 audio_alsa 1323 1323 audio_jack 1324 1324 audio_oss 1325 audio_dsound 1325 1326 ffmpeg_pthreads 1326 1327 mac_bundle 1327 1328 proc_opt … … 3659 3660 enable audio_jack || 3660 3661 disable audio_jack 3661 3662 3663 # DirectSound probe 3664 enabled windows && 3665 check_header dsound.h && 3666 enable audio_dsound || 3667 disable audio_dsound 3668 3662 3669 enabled x11grab && 3663 3670 check_header X11/Xlib.h && 3664 3671 check_header X11/extensions/XShm.h && … … 4208 4215 echo "JACK support ${audio_jack-no}" 4209 4216 if test x"$target_os" = x"mingw32" ; then 4210 4217 echo "Windows (Windows audio) yes" 4211 echo "Windows (DirectX) yes"4218 echo "Windows (DirectX) ${audio_dsound-no}" 4212 4219 fi 4213 4220 echo "libfftw3 support ${libfftw3-no}" 4214 4221 echo … … 4384 4391 echo "CONFIG_AUDIO_PULSE_LIBS=$audio_pulse_libs" >> $MYTH_CONFIG_MAK 4385 4392 fi 4386 4393 4394 if enabled audio_dsound; then 4395 append CCONFIG "using_dsound" 4396 fi 4397 4387 4398 if enabled freetype2; then 4388 4399 echo "HAVE_FREETYPE2=yes" >> $MYTH_CONFIG_MAK 4389 4400 echo "FREETYPE_CFLAGS=`freetype-config --cflags`" >> $MYTH_CONFIG_MAK -
libs/libmyth/libmyth.pro
136 136 137 137 mingw { 138 138 DEFINES += USING_MINGW 139 SOURCES += mediamonitor-windows.cpp audiooutputwin.cpp audiooutputdx.cpp140 HEADERS += mediamonitor-windows.h audiooutputwin.h audiooutputdx.h139 SOURCES += mediamonitor-windows.cpp audiooutputwin.cpp 140 HEADERS += mediamonitor-windows.h audiooutputwin.h 141 141 LIBS += -lpthread -lwinmm -lws2_32 142 142 } 143 143 144 using_dsound { 145 DEFINES += USING_DSOUND 146 SOURCES += audiooutputdx.cpp 147 HEADERS += audiooutputdx.h 148 } 149 144 150 macx { 145 151 HEADERS += audiooutputca.h 146 152 SOURCES += audiooutputca.cpp -
libs/libmyth/audiooutput.cpp
8 8 #include "compat.h" 9 9 10 10 #include "audiooutputnull.h" 11 #ifdef USING_DSOUND 12 #include "audiooutputdx.h" 13 #endif 11 14 #ifdef USING_MINGW 12 #include "audiooutputdx.h"13 15 #include "audiooutputwin.h" 14 16 #endif 15 17 #ifdef USING_OSS … … 72 74 } 73 75 else if (main_device.startsWith("DirectX:")) 74 76 { 75 #ifdef USING_ MINGW77 #ifdef USING_DSOUND 76 78 return new AudioOutputDX(settings); 77 79 #else 78 80 VERBOSE(VB_IMPORTANT, "Audio output device is set to DirectX device " -
programs/mythfrontend/mythfrontend.pro
82 82 using_alsa:DEFINES += USING_ALSA 83 83 using_jack:DEFINES += USING_JACK 84 84 using_oss: DEFINES += USING_OSS 85 using_dsound:DEFINES += USING_DSOUND 85 86 macx: DEFINES += USING_COREAUDIO -
programs/mythfrontend/globalsettings.cpp
80 80 #endif 81 81 #ifdef USING_MINGW 82 82 gc->addSelection("Windows:"); 83 #endif 84 #ifdef USING_DSOUND 83 85 gc->addSelection("DirectX:Primary Sound Driver"); 84 86 #endif 85 87 … … 164 166 165 167 gc->setLabel(QObject::tr("Digital output device")); 166 168 gc->addSelection(QObject::tr("Default"), "Default"); 167 #ifdef USING_ MINGW169 #ifdef USING_DSOUND 168 170 gc->addSelection("DirectX:Primary Sound Driver"); 169 171 #else 170 172 gc->addSelection("ALSA:iec958:{ AES0 0x02 }", "ALSA:iec958:{ AES0 0x02 }"); … … 211 213 #ifdef USING_ALSA 212 214 gc->addSelection("ALSA:default", "ALSA:default"); 213 215 #endif 216 #ifdef USING_DSOUND 217 gc->addSelection("DirectX:", "DirectX:"); 218 #endif 214 219 #ifdef USING_MINGW 215 gc->addSelection("DirectX:", "DirectX:");216 220 gc->addSelection("Windows:", "Windows:"); 217 221 #endif 218 222 #if !defined(USING_MINGW)