mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 13:54:49 +00:00 
			
		
		
		
	coreaudio: Move some variable declarations to the top of the scope.
This commit is contained in:
		
							parent
							
								
									1428bab3b3
								
							
						
					
					
						commit
						f9d9708f6b
					
				| 
						 | 
					@ -437,17 +437,18 @@ static void
 | 
				
			||||||
COREAUDIO_CloseDevice(_THIS)
 | 
					COREAUDIO_CloseDevice(_THIS)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    const int iscapture = this->iscapture;
 | 
					    const int iscapture = this->iscapture;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (this->hidden->audioUnitOpened) {
 | 
					    if (this->hidden->audioUnitOpened) {
 | 
				
			||||||
 | 
					        const AudioUnitElement output_bus = 0;
 | 
				
			||||||
 | 
					        const AudioUnitElement input_bus = 1;
 | 
				
			||||||
 | 
					        const AudioUnitElement bus = ((iscapture) ? input_bus : output_bus);
 | 
				
			||||||
 | 
					        AURenderCallbackStruct callback;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        #if MACOSX_COREAUDIO
 | 
					        #if MACOSX_COREAUDIO
 | 
				
			||||||
        /* Unregister our disconnect callback. */
 | 
					        /* Unregister our disconnect callback. */
 | 
				
			||||||
        AudioObjectRemovePropertyListener(this->hidden->deviceID, &alive_address, device_unplugged, this);
 | 
					        AudioObjectRemovePropertyListener(this->hidden->deviceID, &alive_address, device_unplugged, this);
 | 
				
			||||||
        #endif
 | 
					        #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        AURenderCallbackStruct callback;
 | 
					 | 
				
			||||||
        const AudioUnitElement output_bus = 0;
 | 
					 | 
				
			||||||
        const AudioUnitElement input_bus = 1;
 | 
					 | 
				
			||||||
        const AudioUnitElement bus = ((iscapture) ? input_bus : output_bus);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        /* stop processing the audio unit */
 | 
					        /* stop processing the audio unit */
 | 
				
			||||||
        AudioOutputUnitStop(this->hidden->audioUnit);
 | 
					        AudioOutputUnitStop(this->hidden->audioUnit);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue