diff options
author | Chris Robinson <[email protected]> | 2012-03-13 15:32:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-13 15:32:44 -0700 |
commit | 07e34cc3cf0c741c1c0092bf78f2ae19fa0177a4 (patch) | |
tree | d6ffb8f4fca6021a75f6e67f903931a0860bc9df /Alc | |
parent | f7f1dd1346e66e58e474a1c6aba746cedeb43ab8 (diff) |
Use enums to specify the default channel configuration and sample type
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2485,8 +2485,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) InitUIntMap(&device->FilterMap, ~0); //Set output format - device->FmtChans = DevFmtStereo; - device->FmtType = DevFmtFloat; + device->FmtChans = DevFmtChannelsDefault; + device->FmtType = DevFmtTypeDefault; device->Frequency = DEFAULT_OUTPUT_RATE; device->NumUpdates = 4; device->UpdateSize = 1024; @@ -2747,9 +2747,9 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceN device->NumUpdates = 0; device->UpdateSize = 0; - device->Frequency = 44100; - device->FmtChans = DevFmtStereo; - device->FmtType = DevFmtShort; + device->Frequency = DEFAULT_OUTPUT_RATE; + device->FmtChans = DevFmtChannelsDefault; + device->FmtType = DevFmtTypeDefault; ConfigValueUInt(NULL, "sources", &device->MaxNoOfSources); if(device->MaxNoOfSources == 0) device->MaxNoOfSources = 256; |