forked from jfricker/AudioStreamer
-
Notifications
You must be signed in to change notification settings - Fork 42
/
main.m
30 lines (28 loc) · 875 Bytes
/
main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// main.m
// iPhone/MacStreamingPlayer
//
// Created by Matt Gallagher on 28/10/08.
// Copyright Matt Gallagher 2008. All rights reserved.
//
// Permission is given to use this source code file, free of charge, in any
// project, commercial or otherwise, entirely at your risk, with the condition
// that any redistribution (in part or whole) of source code must retain
// this copyright and permission notice. Attribution in compiled projects is
// appreciated but not required.
//
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif
int main(int argc, const char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
#if TARGET_OS_IPHONE
int retVal = UIApplicationMain(argc, (char **)argv, nil, nil);
#else
int retVal = NSApplicationMain(argc, argv);
#endif
[pool release];
return retVal;
}