Skip to content

Commit

Permalink
New project structure for building a static library.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoul committed Sep 7, 2011
1 parent 18381f2 commit edeb446
Show file tree
Hide file tree
Showing 29 changed files with 509 additions and 379 deletions.
5 changes: 3 additions & 2 deletions .gitignore
@@ -1,4 +1,5 @@
.DS_Store
Demo/build/
Demo/Demo.xcodeproj/*.*
.svn
project.xcworkspace
xcuserdata
*.swp
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions Demo/Application.h
@@ -0,0 +1,9 @@
@class Controller;

@interface Application : NSObject <UIApplicationDelegate>

@property(retain, nonatomic) IBOutlet UIWindow *window;
@property(retain, nonatomic) IBOutlet Controller *controller;

@end

2 changes: 1 addition & 1 deletion Demo/Classes/Application.m → Demo/Application.m
Expand Up @@ -6,7 +6,7 @@ @implementation Application

- (void) applicationDidFinishLaunching: (UIApplication*) application
{
[window addSubview:controller.view];
[window setRootViewController:controller];
[window makeKeyAndVisible];
}

Expand Down
File renamed without changes.
9 changes: 0 additions & 9 deletions Demo/Classes/Application.h

This file was deleted.

2 changes: 1 addition & 1 deletion Demo/Classes/Controller.h → Demo/Controller.h
@@ -1,4 +1,4 @@
@interface Controller : UIViewController {}
@interface Controller : UIViewController

- (IBAction) makeGoodSound;
- (IBAction) makeBadSound;
Expand Down
1 change: 0 additions & 1 deletion Demo/Classes/Controller.m → Demo/Controller.m
Expand Up @@ -2,7 +2,6 @@
#import "Finch.h"
#import "Sound.h"
#import "RevolverSound.h"
#import <AVFoundation/AVFoundation.h>
#import <unistd.h>

static const int kBulletRounds = 4;
Expand Down
352 changes: 0 additions & 352 deletions Demo/Demo.xcodeproj/project.pbxproj

This file was deleted.

10 changes: 8 additions & 2 deletions Demo/Info.plist
Expand Up @@ -16,20 +16,26 @@
<string>Icon@2x.png</string>
</array>
<key>CFBundleIdentifier</key>
<string>com.crowdcafe.test</string>
<string>com.crowdcafe.Finch-Demo</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<string>Bootstrap</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
</plist>
6 changes: 2 additions & 4 deletions Demo/main.m
@@ -1,7 +1,5 @@
#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {

int main(int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
Expand Down
5 changes: 1 addition & 4 deletions Demo/prefix.pch
@@ -1,8 +1,5 @@
//
// Prefix header for all source files of the 'Demo' target in the 'Demo' project
//

#ifdef __OBJC__
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
475 changes: 475 additions & 0 deletions Finch.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Finch/Finch.h
@@ -0,0 +1,2 @@
@interface Finch : NSObject
@end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Source/RevolverSound.m → Finch/RevolverSound.m
Expand Up @@ -26,7 +26,7 @@ - (void) dealloc

- (void) play
{
[[sounds objectAtIndex:current] play];
[(Sound*) [sounds objectAtIndex:current] play];
current = (current + 1) % [sounds count];
}

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions Source/Finch.h

This file was deleted.

3 changes: 3 additions & 0 deletions prefix.pch
@@ -0,0 +1,3 @@
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
3 changes: 3 additions & 0 deletions todo.md
Expand Up @@ -5,3 +5,6 @@ Design Notes
* If we want the decoder stuff to be useful for other people, we have to separate
the file reading from decoding and we have to decode the audio in chunks if the
caller wants to.
* “A tip for when you want to add panning to Finch – move (AL_POSITION) the
listener or the source slightly from the default Z position (0.0f) to get
smooth panning.”

0 comments on commit edeb446

Please sign in to comment.