- reformatting

This commit is contained in:
Dmytro Bogovych 2018-09-11 09:33:15 +03:00
parent b7d5df183b
commit 6deceec404
1 changed files with 42 additions and 42 deletions

View File

@ -25,7 +25,7 @@
using namespace Audio;
Device::Device()
:mConnection(nullptr)
:mConnection(nullptr)
{
}
@ -57,16 +57,16 @@ InputDevice* InputDevice::make(int devId)
#if defined(USE_NULL_AUDIO)
return new NullInputDevice();
#else
#if defined(TARGET_WIN) && defined(_MSC_VER)
#if defined(TARGET_WIN) && defined(_MSC_VER)
// return new WmmeInputDevice(index);
return new DSoundInputDevice(DSoundHelper::deviceId2Guid(devId, true));
#endif
#ifdef TARGET_OSX
#endif
#ifdef TARGET_OSX
return new MacInputDevice(devId);
#endif
#ifdef TARGET_ANDROID
#endif
#ifdef TARGET_ANDROID
return new AndroidInputDevice(devId);
#endif
#endif
#endif
return nullptr;
}
@ -84,16 +84,16 @@ OutputDevice* OutputDevice::make(int devId)
#if defined(USE_NULL_AUDIO)
return new NullOutputDevice();
#else
#if defined(TARGET_WIN)
#if defined(TARGET_WIN)
//return new WmmeOutputDevice(index);
return new DSoundOutputDevice(DSoundHelper::deviceId2Guid(devId, false));
#endif
#ifdef TARGET_OSX
#endif
#ifdef TARGET_OSX
return new MacOutputDevice(devId);
#endif
#ifdef TARGET_ANDROID
#endif
#ifdef TARGET_ANDROID
return new AndroidOutputDevice(devId);
#endif
#endif
#endif
return nullptr;
}
@ -124,15 +124,15 @@ Enumerator* Enumerator::make(bool useNull)
return new NullEnumerator();
#ifndef USE_NULL_AUDIO
#ifdef TARGET_WIN
#ifdef TARGET_WIN
if (winVersion() > Win_Xp)
return new VistaEnumerator();
else
return new XpEnumerator();
#endif
#ifdef TARGET_OSX
#endif
#ifdef TARGET_OSX
return new MacEnumerator();
#endif
#endif
#endif
return new NullEnumerator();
}