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

View File

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