Skip to content

Instantly share code, notes, and snippets.

View ikonst's full-sized avatar

Ilya Priven ikonst

  • New York, NY
  • 23:13 (UTC -04:00)
View GitHub Profile
@angelolloqui
angelolloqui / gist:3872250
Created October 11, 2012 13:24
Activate Accesibility
NSString *appSupportLocation = @"/System/Library/PrivateFrameworks/AppSupport.framework/AppSupport";
NSDictionary *environment = [[NSProcessInfo processInfo] environment];
NSString *simulatorRoot = [environment objectForKey:@"IPHONE_SIMULATOR_ROOT"];
if (simulatorRoot) {
appSupportLocation = [simulatorRoot stringByAppendingString:appSupportLocation];
}
void *appSupportLibrary = dlopen([appSupportLocation fileSystemRepresentation], RTLD_LAZY);
@ford-prefect
ford-prefect / gist:cd2ef0b3e17b3b9c15d9
Created March 10, 2015 20:01
osxaudio review todo
audiounitinitialize on open - test on OS X and iOS
get_caps - okay
cached_caps_valid - take lock in property notification only if on outer element
can we just use cached_caps == NULL for marking invalid?
with/without channel-mask in caps - keep both, since we want to expose what the
device has, and also allow remapping
- if !channel_mask, we're adding duplicate
structures
- out_s1 should be before out_s2
G_STRUCT_OFFSET - maybe just add a single line note like: