Skip to content

Commit

Permalink
Adding better debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffeyDev committed Jun 1, 2020
1 parent 85a84b7 commit 5f1a47b
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions atemOSC/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -326,20 +326,20 @@ - (void)switcherConnected
}
else
{
[self logMessage:@"Could not get IBMDSwitcherTransitionParameters"];
[self logMessage:@"[Debug] Could not get IBMDSwitcherTransitionParameters"];
}

}
else
{
[self logMessage:@"Could not get the first IBMDSwitcherMixEffectBlock"];
[self logMessage:@"[Debug] Could not get the first IBMDSwitcherMixEffectBlock"];
}

iterator->Release();
}
else
{
[self logMessage:@"Could not create IBMDSwitcherMixEffectBlockIterator iterator"];
[self logMessage:@"[Debug] Could not create IBMDSwitcherMixEffectBlockIterator iterator"];
}


Expand Down Expand Up @@ -377,7 +377,7 @@ - (void)switcherConnected
}
else
{
[self logMessage:@"Could not create IBMDSwitcherInputIterator iterator"];
[self logMessage:@"[Debug] Could not create IBMDSwitcherInputIterator iterator"];
}


Expand All @@ -404,7 +404,7 @@ - (void)switcherConnected
}
else
{
[self logMessage:@"Could not create IBMDSwitcherKeyIterator iterator"];
[self logMessage:@"[Debug] Could not create IBMDSwitcherKeyIterator iterator"];
}


Expand All @@ -423,7 +423,7 @@ - (void)switcherConnected
}
else
{
[self logMessage:@"Could not create IBMDSwitcherDownstreamKeyIterator iterator"];
[self logMessage:@"[Debug] Could not create IBMDSwitcherDownstreamKeyIterator iterator"];
}

// Media Players
Expand All @@ -440,13 +440,13 @@ - (void)switcherConnected
}
else
{
[self logMessage:@"Could not create IBMDSwitcherMediaPlayerIterator iterator"];
[self logMessage:@"[Debug] Could not create IBMDSwitcherMediaPlayerIterator iterator"];
}

// get media pool
if (FAILED(mSwitcher->QueryInterface(IID_IBMDSwitcherMediaPool, (void**)&mMediaPool)))
{
[self logMessage:@"Could not get IBMDSwitcherMediaPool interface"];
[self logMessage:@"[Debug] Could not get IBMDSwitcherMediaPool interface"];
}

// get macro pool
Expand All @@ -456,13 +456,13 @@ - (void)switcherConnected
}
else
{
[self logMessage:@"Could not get IID_IBMDSwitcherMacroPool interface"];
[self logMessage:@"[Debug] Could not get IID_IBMDSwitcherMacroPool interface"];
}

// get macro controller
if (FAILED(mSwitcher->QueryInterface(IID_IBMDSwitcherMacroControl, (void**)&mMacroControl)))
{
[self logMessage:@"Could not get IID_IBMDSwitcherMacroControl interface"];
[self logMessage:@"[Debug] Could not get IID_IBMDSwitcherMacroControl interface"];
}

// Super source
Expand All @@ -480,12 +480,12 @@ - (void)switcherConnected
}
else
{
[self logMessage:@"Could not create IBMDSwitcherSuperSourceBoxIterator iterator"];
[self logMessage:@"[Debug] Could not create IBMDSwitcherSuperSourceBoxIterator iterator"];
}
}
else
{
[self logMessage:@"Could not get IBMDSwitcherInputSuperSource interface"];
[self logMessage:@"[Debug] Could not get IBMDSwitcherInputSuperSource interface"];
}

// Audio Mixer (Output)
Expand Down Expand Up @@ -513,12 +513,12 @@ - (void)switcherConnected
}
else
{
[self logMessage:[NSString stringWithFormat:@"Could not create IBMDSwitcherAudioInputIterator iterator. code: %d", HRESULT_CODE(result)]];
[self logMessage:[NSString stringWithFormat:@"[Debug] Could not create IBMDSwitcherAudioInputIterator iterator. code: %d", HRESULT_CODE(result)]];
}
}
else
{
[self logMessage:@"Could not get IBMDSwitcherAudioMixer interface"];
[self logMessage:@"[Debug] Could not get IBMDSwitcherAudioMixer interface (If your switcher supports Fairlight audio, you can ignore this)"];
}

// Fairlight Audio Mixer
Expand Down Expand Up @@ -552,20 +552,20 @@ - (void)switcherConnected
}
else
{
[self logMessage:[NSString stringWithFormat:@"Could not create IBMDSwitcherFairlightAudioSourceIterator iterator. code: %d", HRESULT_CODE(result)]];
[self logMessage:[NSString stringWithFormat:@"[Debug] Could not create IBMDSwitcherFairlightAudioSourceIterator iterator. code: %d", HRESULT_CODE(result)]];
}
}
audioInputIterator->Release();
audioInputIterator = NULL;
}
else
{
[self logMessage:[NSString stringWithFormat:@"Could not create IBMDSwitcherFairlightAudioInputIterator iterator. code: %d", HRESULT_CODE(result)]];
[self logMessage:[NSString stringWithFormat:@"[Debug] Could not create IBMDSwitcherFairlightAudioInputIterator iterator. code: %d", HRESULT_CODE(result)]];
}
}
else
{
[self logMessage:@"Could not get IBMDSwitcherFairlightAudioMixer interface"];
[self logMessage:@"[Debug] Could not get IBMDSwitcherFairlightAudioMixer interface (If your switcher does not support Fairlight audio, you can ignore this)"];
}

// Hyperdeck Setup
Expand All @@ -588,7 +588,7 @@ - (void)switcherConnected
}
else
{
[self logMessage:[NSString stringWithFormat:@"Could not create IBMDSwitcherHyperDeckIterator iterator. code: %d", HRESULT_CODE(result)]];
[self logMessage:[NSString stringWithFormat:@"[Debug] Could not create IBMDSwitcherHyperDeckIterator iterator. code: %d", HRESULT_CODE(result)]];
}

dispatch_async(dispatch_get_main_queue(), ^{
Expand Down

0 comments on commit 5f1a47b

Please sign in to comment.