Skip to content

Instantly share code, notes, and snippets.

View danoli3's full-sized avatar

Dan Rosser danoli3

View GitHub Profile
AudioChannelLayout channelLayout;
bzero(&channelLayout, sizeof(channelLayout));
channelLayout.mChannelLayoutTag = kAudioChannelLayoutTag_Mono;
int numOfChannels = 1;
if(channelLayout.mChannelLayoutTag == kAudioChannelLayoutTag_Stereo) {
numOfChannels = 2;
}
NSDictionary * audioOutputSettings = nil;
@danoli3
danoli3 / Create iOS Icons.jsx
Last active December 28, 2015 01:49 — forked from twonjosh/Create iOS Icons.jsx
IOS 7 update for the Icon generator, with proper names
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@danoli3
danoli3 / testApp.cpp
Created July 28, 2013 02:30
openframeworks 0.8 develop ofBoxPrimitive efficiency vs 0.7.4 (this one built for 0.7.4)
// TEST
#include "testApp.h"
struct Box {
ofVec3f pos;
float size;
float xScale;
float yScale;
int x;
@danoli3
danoli3 / testApp.cpp
Created July 28, 2013 02:27
openframeworks 0.8 develop ofBoxPrimitive efficiency vs 0.7.4
// TEST 0.8
#include "testApp.h"
struct Box {
ofVec3f pos;
float size;
float xScale;
float yScale;
int x;