[Audio Output] Remove unnecessary variables

These variables weren't being used anyway, so remove them.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
xcode15
Christopher Snowhill 2022-07-01 12:42:21 -07:00
parent b701fa712e
commit d9f111d735
2 changed files with 0 additions and 13 deletions

View File

@ -76,7 +76,6 @@ using std::atomic_long;
AudioStreamBasicDescription visFormat; // Mono format for vis
uint32_t deviceChannelConfig;
uint32_t streamChannelConfig;
uint32_t newChannelConfig;
@ -85,8 +84,6 @@ using std::atomic_long;
CMAudioFormatDescriptionRef audioFormatDescription;
AudioChannelLayoutTag streamTag;
id currentPtsObserver;
NSLock *currentPtsLock;
CMTime currentPts, lastPts;

View File

@ -604,35 +604,27 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
switch(streamChannelConfig) {
case AudioConfigMono:
tag = kAudioChannelLayoutTag_Mono;
deviceChannelConfig = AudioConfigMono;
break;
case AudioConfigStereo:
tag = kAudioChannelLayoutTag_Stereo;
deviceChannelConfig = AudioConfigStereo;
break;
case AudioConfig3Point0:
tag = kAudioChannelLayoutTag_WAVE_3_0;
deviceChannelConfig = AudioConfig3Point0;
break;
case AudioConfig4Point0:
tag = kAudioChannelLayoutTag_WAVE_4_0_A;
deviceChannelConfig = AudioConfig4Point0;
break;
case AudioConfig5Point0:
tag = kAudioChannelLayoutTag_WAVE_5_0_A;
deviceChannelConfig = AudioConfig5Point0;
break;
case AudioConfig5Point1:
tag = kAudioChannelLayoutTag_WAVE_5_1_A;
deviceChannelConfig = AudioConfig5Point1;
break;
case AudioConfig6Point1:
tag = kAudioChannelLayoutTag_WAVE_6_1;
deviceChannelConfig = AudioConfig6Point1;
break;
case AudioConfig7Point1:
tag = kAudioChannelLayoutTag_WAVE_7_1;
deviceChannelConfig = AudioConfig7Point1;
break;
default:
@ -640,8 +632,6 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
break;
}
streamTag = tag;
if(tag) {
layout.mChannelLayoutTag = tag;
} else {