diff options
author | eddie-0815 <eddie-0815@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-11-08 18:51:40 +0000 |
---|---|---|
committer | eddie-0815 <eddie-0815@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-11-08 18:51:40 +0000 |
commit | 6ca1db26350a589b5bcb3e2eac35a7965d5ab448 (patch) | |
tree | 37f4d6bef02b3bbeccefbaafa5eeb94a3942a7f8 /Game/Code/Classes/URecord.pas | |
parent | a5ca459937cf9f08d47ca6aca16e777153821f25 (diff) | |
download | usdx-6ca1db26350a589b5bcb3e2eac35a7965d5ab448.tar.gz usdx-6ca1db26350a589b5bcb3e2eac35a7965d5ab448.tar.xz usdx-6ca1db26350a589b5bcb3e2eac35a7965d5ab448.zip |
Mac OS X: Added PseudoThread for debugging, because debugging of threaded code causes problems with Xcode and FreePascal.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@594 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/URecord.pas')
-rw-r--r-- | Game/Code/Classes/URecord.pas | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Game/Code/Classes/URecord.pas b/Game/Code/Classes/URecord.pas index 87c35cd8..29a9d7f9 100644 --- a/Game/Code/Classes/URecord.pas +++ b/Game/Code/Classes/URecord.pas @@ -323,6 +323,16 @@ begin BASS_RecordInit(SC); InputName := BASS_RecordGetInputName(SCI); + + {$IFDEF DARWIN} + // Under MacOSX the SingStar Mics have an empty + // InputName. So, we have to add a hard coded + // Workaround for this problem + if (InputName = nil) and (Pos( 'USBMIC Serial#', Descr) > 0) then + begin + InputName := 'Microphone'; + end; + {$ENDIF} SetLength(SoundCard[SC].Input, 1); SoundCard[SC].Input[SCI].Name := InputName; |