Skip to content
Newer
Older
100644 32 lines (28 sloc) 886 Bytes
6d0a846 First commit of AudioStreamer to git repository.
Matt Gallagher authored Jun 17, 2009
1 //
2 // main.m
c061aa3 Integrated Mac and iPhone versions.
Matt Gallagher authored Jun 17, 2009
3 // iPhone/MacStreamingPlayer
6d0a846 First commit of AudioStreamer to git repository.
Matt Gallagher authored Jun 17, 2009
4 //
5 // Created by Matt Gallagher on 28/10/08.
6 // Copyright Matt Gallagher 2008. All rights reserved.
7 //
8 // Permission is given to use this source code file, free of charge, in any
9 // project, commercial or otherwise, entirely at your risk, with the condition
10 // that any redistribution (in part or whole) of source code must retain
11 // this copyright and permission notice. Attribution in compiled projects is
12 // appreciated but not required.
13 //
14
c061aa3 Integrated Mac and iPhone versions.
Matt Gallagher authored Jun 17, 2009
15 #ifdef TARGET_OS_IPHONE
6d0a846 First commit of AudioStreamer to git repository.
Matt Gallagher authored Jun 17, 2009
16 #import <UIKit/UIKit.h>
c061aa3 Integrated Mac and iPhone versions.
Matt Gallagher authored Jun 17, 2009
17 #else
18 #import <Cocoa/Cocoa.h>
19 #endif
6d0a846 First commit of AudioStreamer to git repository.
Matt Gallagher authored Jun 17, 2009
20
c061aa3 Integrated Mac and iPhone versions.
Matt Gallagher authored Jun 17, 2009
21 int main(int argc, const char *argv[]) {
6d0a846 First commit of AudioStreamer to git repository.
Matt Gallagher authored Jun 17, 2009
22
23 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
c061aa3 Integrated Mac and iPhone versions.
Matt Gallagher authored Jun 17, 2009
24 #ifdef TARGET_OS_IPHONE
25 int retVal = UIApplicationMain(argc, (char **)argv, nil, nil);
26 #else
27 int retVal = NSApplicationMain(argc, argv);
28 #endif
6d0a846 First commit of AudioStreamer to git repository.
Matt Gallagher authored Jun 17, 2009
29 [pool release];
30 return retVal;
31 }
Something went wrong with that request. Please try again.