this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

CoreAudio: Proper success returns in various property getters

+9 -7
+3 -3
src/CoreAudio/CoreAudio/AudioHardwareImpl.cpp
··· 138 138 asbd->mBytesPerFrame = UInt32(asbd->mBytesPerPacket = asbd->mChannelsPerFrame * asbd->mSampleRate * asbd->mBitsPerChannel / 8); 139 139 } 140 140 *ioDataSize = sizeof(AudioStreamBasicDescription); 141 - return noErr; 141 + return kAudioHardwareNoError; 142 142 } 143 143 case kAudioDevicePropertyDeviceManufacturer: 144 144 return getPropertyString(m_manufacturer, ioDataSize, outData); ··· 156 156 *flt = 44100; 157 157 158 158 *ioDataSize = sizeof(Float64); 159 - return noErr; 159 + return kAudioHardwareNoError; 160 160 } 161 161 case kAudioDevicePropertyAvailableNominalSampleRates: // AudioValueRange[] 162 162 { ··· 166 166 avr->mMaximum = 44100; 167 167 } 168 168 *ioDataSize = sizeof(AudioValueRange) * 1; 169 - return noErr; 169 + return kAudioHardwareNoError; 170 170 } 171 171 172 172 }
+6 -4
src/CoreAudio/CoreAudio/AudioHardwareImplPA.cpp
··· 18 18 */ 19 19 20 20 #include "AudioHardwareImplPA.h" 21 + #include "stub.h" 21 22 22 23 AudioHardwareImplPA::AudioHardwareImplPA() 23 24 { ··· 40 41 *devId = kAudioObjectSystemObject; 41 42 } 42 43 *ioDataSize = sizeof(AudioDeviceID); 43 - break; 44 + return kAudioHardwareNoError; 44 45 case kAudioHardwarePropertyDefaultOutputDevice: // returns AudioDeviceID 45 46 if (AudioDeviceID* devId = static_cast<AudioDeviceID*>(outData); devId && *ioDataSize >= sizeof(AudioDeviceID)) 46 47 { 47 48 *devId = kAudioObjectSystemObject; 48 49 } 49 50 *ioDataSize = sizeof(AudioDeviceID); 50 - break; 51 + return kAudioHardwareNoError; 51 52 case kAudioHardwarePropertyDevices: 52 53 { 53 54 if (AudioDeviceID* devId = static_cast<AudioDeviceID*>(outData); devId && *ioDataSize >= sizeof(AudioDeviceID)) ··· 55 56 devId[0] = kAudioObjectSystemObject; 56 57 } 57 58 *ioDataSize = sizeof(AudioDeviceID) * 1; 58 - break; 59 + return kAudioHardwareNoError; 59 60 } 60 61 // END kAudioObjectSystemObject properties 61 62 ··· 77 78 } 78 79 79 80 *ioDataSize = size; 80 - break; 81 + return kAudioHardwareNoError; 81 82 } 82 83 83 84 } ··· 94 95 AudioHardwareStream* AudioHardwareImplPA::createStream(AudioDeviceIOProcID procID) 95 96 { 96 97 // TODO 98 + STUB(); 97 99 return nullptr; 98 100 }