mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 08:15:42 +00:00
Static analysis fix: Removed unused variable.
(We don't care if closing the device fails anyhow).
This commit is contained in:
parent
3aae0ed2c5
commit
a43dbfad0d
|
@ -319,7 +319,6 @@ COREAUDIO_CloseDevice(_THIS)
|
||||||
{
|
{
|
||||||
if (this->hidden != NULL) {
|
if (this->hidden != NULL) {
|
||||||
if (this->hidden->audioUnitOpened) {
|
if (this->hidden->audioUnitOpened) {
|
||||||
OSStatus result = noErr;
|
|
||||||
AURenderCallbackStruct callback;
|
AURenderCallbackStruct callback;
|
||||||
const AudioUnitElement output_bus = 0;
|
const AudioUnitElement output_bus = 0;
|
||||||
const AudioUnitElement input_bus = 1;
|
const AudioUnitElement input_bus = 1;
|
||||||
|
@ -331,14 +330,13 @@ COREAUDIO_CloseDevice(_THIS)
|
||||||
kAudioUnitScope_Input);
|
kAudioUnitScope_Input);
|
||||||
|
|
||||||
/* stop processing the audio unit */
|
/* stop processing the audio unit */
|
||||||
result = AudioOutputUnitStop(this->hidden->audioUnit);
|
AudioOutputUnitStop(this->hidden->audioUnit);
|
||||||
|
|
||||||
/* Remove the input callback */
|
/* Remove the input callback */
|
||||||
SDL_memset(&callback, 0, sizeof(AURenderCallbackStruct));
|
SDL_memset(&callback, 0, sizeof(AURenderCallbackStruct));
|
||||||
result = AudioUnitSetProperty(this->hidden->audioUnit,
|
AudioUnitSetProperty(this->hidden->audioUnit,
|
||||||
kAudioUnitProperty_SetRenderCallback,
|
kAudioUnitProperty_SetRenderCallback,
|
||||||
scope, bus, &callback,
|
scope, bus, &callback, sizeof(callback));
|
||||||
sizeof(callback));
|
|
||||||
|
|
||||||
#if MACOSX_COREAUDIO
|
#if MACOSX_COREAUDIO
|
||||||
CloseComponent(this->hidden->audioUnit);
|
CloseComponent(this->hidden->audioUnit);
|
||||||
|
|
Loading…
Reference in a new issue