Skip to content

Commit

Permalink
updated to Blackmagic SDK 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbuechele committed Feb 1, 2013
1 parent 4253597 commit d547fe1
Show file tree
Hide file tree
Showing 11 changed files with 1,886 additions and 99 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
atemOSC v2.0
atemOSC v2.1
============

This is a Mac OS X application, providing an interface to control an ATEM video switcher via OSC.
The code is based on the *SwitcherPanel*-Democode (Version 3.1) provided by Blackmagic. Additionally the control of a tally-light interface via Arduino is provided.
The code is based on the *SwitcherPanel*-Democode (Version 3.5) provided by Blackmagic. Additionally the control of a tally-light interface via Arduino is provided.

![atemOSC](https://github.com/danielbuechele/atemOSC/raw/master/atemOSC.jpg)

Expand Down
8 changes: 4 additions & 4 deletions atemOSC.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0</string>
<string>2.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string></string>
<key>DTPlatformBuild</key>
<string>4G1004</string>
<string>4H127</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>12C60</string>
<key>DTSDKName</key>
<string></string>
<key>DTXcode</key>
<string>0451</string>
<string>0460</string>
<key>DTXcodeBuild</key>
<string>4G1004</string>
<string>4H127</string>
<key>LSMinimumSystemVersion</key>
<string>10.8</string>
<key>NSMainNibFile</key>
Expand Down
Binary file modified atemOSC.app/Contents/MacOS/atemOSC
Binary file not shown.
Binary file modified atemOSC.app/Contents/Resources/English.lproj/MainMenu.nib
Binary file not shown.
Binary file modified atemOSC.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,923 changes: 1,839 additions & 84 deletions atemOSC/BMDSwitcherAPI.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion atemOSC/BMDSwitcherAPIDispatch.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* -LICENSE-START-
** Copyright (c) 2011 Blackmagic Design
** Copyright (c) 2012 Blackmagic Design
**
** Permission is hereby granted, free of charge, to any person or organization
** obtaining a copy of the software and accompanying documentation covered by
Expand Down
21 changes: 17 additions & 4 deletions atemOSC/English.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<data>
<int key="IBDocument.SystemTarget">1080</int>
<string key="IBDocument.SystemVersion">12C60</string>
<string key="IBDocument.InterfaceBuilderVersion">2843</string>
<string key="IBDocument.InterfaceBuilderVersion">3084</string>
<string key="IBDocument.AppKitVersion">1187.34</string>
<string key="IBDocument.HIToolboxVersion">625.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">2843</string>
<string key="NS.object.0">3084</string>
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand Down Expand Up @@ -196,7 +196,7 @@
<int key="NSWindowBacking">2</int>
<string key="NSWindowRect">{{335, 426}, {394, 284}}</string>
<int key="NSWTFlags">1954021376</int>
<string key="NSWindowTitle">AtemOSC</string>
<string key="NSWindowTitle">atemOSC</string>
<string key="NSWindowClass">NSWindow</string>
<nil key="NSViewClass"/>
<nil key="NSUserInterfaceItemIdentifier"/>
Expand Down Expand Up @@ -651,7 +651,6 @@
<string key="NSFrame">{{285, 9}, {88, 26}}</string>
<reference key="NSSuperview" ref="604341215"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<int key="NSTag">3</int>
<bool key="NSEnabled">YES</bool>
Expand Down Expand Up @@ -2058,12 +2057,16 @@
<string>connectButtonPressed:</string>
<string>initPort:</string>
<string>portChanged:</string>
<string>send:Channel:</string>
<string>tallyChanged:</string>
</object>
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
<string>id</string>
<string>id</string>
<string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
Expand All @@ -2073,6 +2076,8 @@
<string>connectButtonPressed:</string>
<string>initPort:</string>
<string>portChanged:</string>
<string>send:Channel:</string>
<string>tallyChanged:</string>
</object>
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand All @@ -2088,6 +2093,14 @@
<string key="name">portChanged:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">send:Channel:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">tallyChanged:</string>
<string key="candidateClassName">id</string>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
Expand Down
25 changes: 22 additions & 3 deletions atemOSC/SwitcherPanelAppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ @implementation SwitcherPanelAppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{

mSwitcherDiscovery = NULL;
mSwitcher = NULL;
mMixEffectBlock = NULL;
Expand Down Expand Up @@ -361,9 +362,27 @@ - (void) activateChannel:(int)channel isProgram:(BOOL)program {

BMDSwitcherInputId InputId = channel;
if (program) {
mMixEffectBlock->SetInt(bmdSwitcherMixEffectBlockPropertyIdProgramInput, InputId);
@try {
mMixEffectBlock->SetInt(bmdSwitcherMixEffectBlockPropertyIdProgramInput, InputId);
}
@catch (NSException *exception) {
NSAlert *alert = [[NSAlert alloc] init];
[alert setMessageText:exception.name];
[alert runModal];
}


} else {
mMixEffectBlock->SetInt(bmdSwitcherMixEffectBlockPropertyIdPreviewInput, InputId);
@try {
mMixEffectBlock->SetInt(bmdSwitcherMixEffectBlockPropertyIdPreviewInput, InputId);
}
@catch (NSException *exception) {
NSAlert *alert = [[NSAlert alloc] init];
[alert setMessageText:exception.name];
[alert runModal];
}


}
}

Expand All @@ -389,7 +408,7 @@ - (IBAction)portChanged:(id)sender {
- (IBAction)tallyChanged:(id)sender {

NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
[prefs setObject:[NSString stringWithFormat:@"%d",[[sender selectedItem] tag]] forKey:[NSString stringWithFormat:@"tally%ld",[sender tag]] ];
[prefs setObject:[NSString stringWithFormat:@"%ld",(long)[[sender selectedItem] tag]] forKey:[NSString stringWithFormat:@"tally%ld",(long)[sender tag]] ];
}

- (void)applicationWillTerminate:(NSNotification*)aNotification
Expand Down
2 changes: 1 addition & 1 deletion atemOSC/atemOSC-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0</string>
<string>2.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
Binary file not shown.

0 comments on commit d547fe1

Please sign in to comment.