More audio context work

This commit is contained in:
Joshua Granick
2014-07-30 14:10:11 -07:00
parent d0604d8484
commit c4bdcf03c8
9 changed files with 500 additions and 233 deletions

View File

@@ -22,18 +22,6 @@ namespace lime {
SDL_Init (SDL_INIT_VIDEO | SDL_INIT_TIMER);
#ifdef HX_MACOS
// set working directory for OS X
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL (CFBundleGetMainBundle ());
char path[PATH_MAX];
if (CFURLGetFileSystemRepresentation (resourcesURL, TRUE, (UInt8 *)path, PATH_MAX)) {
chdir(path);
}
CFRelease(resourcesURL);
#endif
currentUpdate = 0;
lastUpdate = 0;
nextUpdate = 0;
@@ -45,6 +33,19 @@ namespace lime {
UpdateEvent updateEvent;
WindowEvent windowEvent;
#ifdef HX_MACOS
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL (CFBundleGetMainBundle ());
char path[PATH_MAX];
if (CFURLGetFileSystemRepresentation (resourcesURL, TRUE, (UInt8 *)path, PATH_MAX)) {
chdir (path);
}
CFRelease (resourcesURL);
#endif
}