diff options
author | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2017-08-21 15:15:36 -0400 |
---|---|---|
committer | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2017-08-21 15:15:55 -0400 |
commit | 738d2ab96997faa1e13b91e38cf8a0000d829f70 (patch) | |
tree | e33258663017edb924695e68224ba836e5fc9f08 /platform/iphone | |
parent | 4717d37bfa867d8cdcd4805967324978da6701b7 (diff) |
Removed unnecessary assignments
Diffstat (limited to 'platform/iphone')
-rw-r--r-- | platform/iphone/audio_driver_iphone.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/iphone/audio_driver_iphone.cpp b/platform/iphone/audio_driver_iphone.cpp index 57b6388016..d8374147c8 100644 --- a/platform/iphone/audio_driver_iphone.cpp +++ b/platform/iphone/audio_driver_iphone.cpp @@ -46,10 +46,8 @@ Error AudioDriverIphone::init() { strdesc.mBytesPerPacket = strdesc.mBytesPerFrame * strdesc.mFramesPerPacket; - OSStatus result = noErr; AURenderCallbackStruct callback; AudioComponentDescription desc; - AudioComponent comp = NULL; const AudioUnitElement output_bus = 0; const AudioUnitElement bus = output_bus; const AudioUnitScope scope = kAudioUnitScope_Input; @@ -57,10 +55,10 @@ Error AudioDriverIphone::init() { zeromem(&desc, sizeof(desc)); desc.componentType = kAudioUnitType_Output; desc.componentSubType = kAudioUnitSubType_RemoteIO; /* !!! FIXME: ? */ - comp = AudioComponentFindNext(NULL, &desc); + AudioComponent comp = AudioComponentFindNext(NULL, &desc); desc.componentManufacturer = kAudioUnitManufacturer_Apple; - result = AudioComponentInstanceNew(comp, &audio_unit); + OSStatus result = AudioComponentInstanceNew(comp, &audio_unit); ERR_FAIL_COND_V(result != noErr, FAILED); ERR_FAIL_COND_V(comp == NULL, FAILED); |