儲存庫 vbox 的更動 6056
- 時間撮記:
- 2007-12-12 下午10:58:26 (17 年 以前)
- 位置:
- trunk
- 檔案:
-
- 修改 15 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/Config.kmk
r6049 r6056 218 218 # Enable ALSA support for Linux 219 219 VBOX_WITH_ALSA = 1 220 # Enable Pulse support for Linux 221 VBOX_WITH_PULSE = 1 220 222 # Disable WINMM support for Windows (not implemented) 221 223 VBOX_WITH_WINMM = -
trunk/src/VBox/Devices/Audio/alsaaudio.c
r5077 r6056 179 179 return SND_PCM_FORMAT_U16_LE; 180 180 181 case AUD_FMT_S32: 182 return SND_PCM_FORMAT_S32_LE; 183 184 case AUD_FMT_U32: 185 return SND_PCM_FORMAT_U32_LE; 186 181 187 default: 182 188 dolog ("Internal logic error: Bad audio format %d\n", fmt); … … 219 225 *endianness = 1; 220 226 *fmt = AUD_FMT_U16; 227 break; 228 229 case SND_PCM_FORMAT_S32_LE: 230 *endianness = 0; 231 *fmt = AUD_FMT_S32; 232 break; 233 234 case SND_PCM_FORMAT_U32_LE: 235 *endianness = 0; 236 *fmt = AUD_FMT_U32; 237 break; 238 239 case SND_PCM_FORMAT_S32_BE: 240 *endianness = 1; 241 *fmt = AUD_FMT_S32; 242 break; 243 244 case SND_PCM_FORMAT_U32_BE: 245 *endianness = 1; 246 *fmt = AUD_FMT_U32; 221 247 break; 222 248 -
trunk/src/VBox/Devices/Audio/audio.c
r5754 r6056 68 68 &alsa_audio_driver, 69 69 #endif 70 #ifdef VBOX_WITH_PULSE 71 &pulse_audio_driver, 72 #endif 70 73 #endif 71 74 #ifdef RT_OS_DARWIN … … 258 261 return "U16"; 259 262 263 case AUD_FMT_U32: 264 return "U32"; 265 260 266 case AUD_FMT_S8: 261 267 return "S8"; … … 263 269 case AUD_FMT_S16: 264 270 return "S16"; 271 272 case AUD_FMT_S32: 273 return "S32"; 265 274 } 266 275 … … 280 289 return AUD_FMT_U16; 281 290 } 291 else if (!strcasecmp (s, "u32")) { 292 *defaultp = 0; 293 return AUD_FMT_U32; 294 } 282 295 else if (!strcasecmp (s, "s8")) { 283 296 *defaultp = 0; … … 287 300 *defaultp = 0; 288 301 return AUD_FMT_S16; 302 } 303 else if (!strcasecmp (s, "s32")) { 304 *defaultp = 0; 305 return AUD_FMT_S32; 289 306 } 290 307 else { … … 498 515 case AUD_FMT_S16: 499 516 case AUD_FMT_U16: 517 case AUD_FMT_S32: 518 case AUD_FMT_U32: 500 519 break; 501 520 default: … … 523 542 bits = 16; 524 543 break; 544 545 case AUD_FMT_S32: 546 sign = 1; 547 case AUD_FMT_U32: 548 bits = 32; 549 break; 525 550 } 526 551 return info->freq == as->freq … … 545 570 case AUD_FMT_U16: 546 571 bits = 16; 572 break; 573 574 case AUD_FMT_S32: 575 sign = 1; 576 case AUD_FMT_U32: 577 bits = 32; 547 578 break; 548 579 } -
trunk/src/VBox/Devices/Audio/audio.h
r5076 r6056 39 39 AUD_FMT_S8, 40 40 AUD_FMT_U16, 41 AUD_FMT_S16 41 AUD_FMT_S16, 42 AUD_FMT_U32, 43 AUD_FMT_S32 42 44 } audfmt_e; 43 45 -
trunk/src/VBox/Devices/Audio/audio_int.h
r5754 r6056 213 213 extern struct audio_driver fmod_audio_driver; 214 214 extern struct audio_driver alsa_audio_driver; 215 extern struct audio_driver pulse_audio_driver; 215 216 extern struct audio_driver coreaudio_audio_driver; 216 217 extern struct audio_driver dsound_audio_driver; -
trunk/src/VBox/Devices/Makefile.kmk
r5999 r6056 598 598 endif 599 599 600 ifdef VBOX_WITH_PULSE 601 Drivers_DEFS.linux += VBOX_WITH_PULSE 602 Drivers_SOURCES.linux+= \ 603 Audio/pulseaudio.c 604 VBoxDD_LIBS.linux += pulse 605 endif 606 600 607 ifdef VBOX_WITH_USB 601 608 Drivers_DEFS += VBOX_WITH_USB IN_USB_R3 -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r5999 r6056 241 241 VirtualBox_DEFS += VBOX_WITH_ALSA 242 242 endif 243 ifdef VBOX_WITH_PULSE 244 VirtualBox_DEFS += VBOX_WITH_PULSE 245 endif 243 246 ifdef VBOX_OSE 244 247 VirtualBox_DEFS += VBOX_OSE -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r5999 r6056 2181 2181 audioDriverTypes [CEnums::CoreAudioDriver] = 2182 2182 tr ("CoreAudio", "AudioDriverType"); 2183 audioDriverTypes [CEnums::PulseAudioDriver] = 2184 tr ("PulseAudio", "AudioDriverType"); 2183 2185 2184 2186 networkAttachmentTypes [CEnums::NoNetworkAttachment] = -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r5999 r6056 860 860 #if defined Q_WS_WIN32 861 861 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::DSOUNDAudioDriver)); 862 # ifdef VBOX_WITH_WINMM862 # ifdef VBOX_WITH_WINMM 863 863 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::WINMMAudioDriver)); 864 # endif864 # endif 865 865 #elif defined Q_OS_LINUX 866 866 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::OSSAudioDriver)); 867 # ifdef VBOX_WITH_ALSA867 # ifdef VBOX_WITH_ALSA 868 868 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::ALSAAudioDriver)); 869 #endif 869 # endif 870 # ifdef VBOX_WITH_PULSE 871 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::PulseAudioDriver)); 872 # endif 870 873 #elif defined Q_OS_MACX 871 874 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::CoreAudioDriver)); -
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r5999 r6056 227 227 case AudioDriverType_NullAudioDriver: 228 228 #ifdef RT_OS_WINDOWS 229 # ifdef VBOX_WITH_WINMM229 # ifdef VBOX_WITH_WINMM 230 230 case AudioDriverType_WINMMAudioDriver: 231 # endif231 # endif 232 232 case AudioDriverType_DSOUNDAudioDriver: 233 233 #endif /* RT_OS_WINDOWS */ 234 234 #ifdef RT_OS_LINUX 235 235 case AudioDriverType_OSSAudioDriver: 236 # ifdef VBOX_WITH_ALSA236 # ifdef VBOX_WITH_ALSA 237 237 case AudioDriverType_ALSAAudioDriver: 238 #endif 238 # endif 239 # ifdef VBOX_WITH_PULSE 240 case AudioDriverType_PulseAudioDriver: 241 # endif 239 242 #endif /* RT_OS_LINUX */ 240 243 #ifdef RT_OS_DARWIN -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r5999 r6056 1329 1329 } 1330 1330 # endif 1331 # ifdef VBOX_WITH_PULSE 1332 case AudioDriverType_PulseAudioDriver: 1333 { 1334 rc = CFGMR3InsertString(pCfg, "AudioDriver", "pulse"); RC_CHECK(); 1335 break; 1336 } 1337 # endif 1331 1338 #endif /* RT_OS_LINUX */ 1332 1339 #ifdef RT_OS_DARWIN -
trunk/src/VBox/Main/MachineImpl.cpp
r5999 r6056 4827 4827 audioDriver = AudioDriverType_OSSAudioDriver; 4828 4828 else if (driver == L"alsa") 4829 # ifdef VBOX_WITH_ALSA4829 # ifdef VBOX_WITH_ALSA 4830 4830 audioDriver = AudioDriverType_ALSAAudioDriver; 4831 # else4831 # else 4832 4832 /* fall back to OSS */ 4833 4833 audioDriver = AudioDriverType_OSSAudioDriver; 4834 #endif 4834 # endif 4835 else if (driver == L"pulse") 4836 # ifdef VBOX_WITH_PULSE 4837 audioDriver = AudioDriverType_PulseAudioDriver; 4838 # else 4839 /* fall back to OSS */ 4840 audioDriver = AudioDriverType_OSSAudioDriver; 4841 # endif 4835 4842 #endif // RT_OS_LINUX 4836 4843 #ifdef RT_OS_DARWIN … … 6700 6707 } 6701 6708 # endif 6709 # ifdef VBOX_WITH_PULSE 6710 case AudioDriverType_PulseAudioDriver: 6711 { 6712 CFGLDRSetString (adapterNode, "driver", "pulse"); 6713 break; 6714 } 6715 # endif 6702 6716 case AudioDriverType_OSSAudioDriver: 6703 6717 { -
trunk/src/VBox/Main/Makefile.kmk
r5999 r6056 119 119 ifdef VBOX_WITH_ALSA 120 120 VBoxSVC_DEFS += VBOX_WITH_ALSA 121 endif 122 ifdef VBOX_WITH_PULSE 123 VBoxSVC_DEFS += VBOX_WITH_PULSE 121 124 endif 122 125 ifdef VBOX_WITH_WINMM … … 296 299 VBoxC_DEFS += VBOX_WITH_ALSA 297 300 endif 301 ifdef VBOX_WITH_PULSE 302 VBoxC_DEFS += VBOX_WITH_PULSE 303 endif 298 304 ifdef VBOX_WITH_WINMM 299 305 VBoxC_DEFS += VBOX_WITH_WINMM -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r5999 r6056 8607 8607 <const name="CoreAudioDriver" value="5"/> 8608 8608 <const name="MMPMAudioDriver" value="6"/> 8609 <const name="PulseAudioDriver" value="7"/> 8609 8610 </enum> 8610 8611 -
trunk/src/VBox/Main/xml/VirtualBox-settings-linux.xsd
r5999 r6056 94 94 <xsd:enumeration value="oss"/> 95 95 <xsd:enumeration value="alsa"/> 96 <xsd:enumeration value="pulse"/> 96 97 </xsd:restriction> 97 98 </xsd:simpleType>
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器