Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / server / scsynth / iPhone / iSCSynthController.h
blob8df172276a1ed39a2fe224bc89b5fbf9eafe20e3
1 //
2 // iSCSynthController.h
3 // iscsynth
4 //
5 // Created by Axel Balley on 21/10/08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import <UIKit/UIKit.h>
10 #import "FileBrowserViewController.h"
12 #include "SC_World.h"
13 #include "SC_HiddenWorld.h"
14 #include "SC_CoreAudio.h"
15 #include "SC_WorldOptions.h"
17 @interface iSCSynthController : NSObject <UITabBarControllerDelegate> {
18 WorldOptions options;
19 struct World *world;
20 NSTimer *timer;
22 int lastNodeID;
24 IBOutlet UILabel *avgCPULabel;
25 IBOutlet UILabel *peakCPULabel;
26 IBOutlet UILabel *synthsLabel;
27 IBOutlet UILabel *ugensLabel;
28 IBOutlet UISwitch *speakerSwitch;
29 IBOutlet UIButton *freeAllButton;
31 IBOutlet UITextView *logView;
33 IBOutlet UIViewController *logViewController;
34 IBOutlet FileBrowserViewController *synthdefsViewController;
38 - (IBAction) toggleState:(id)sender;
39 - (IBAction) toggleSpeaker:(id)sender;
40 - (IBAction) triggerFreeAll:(id)sender;
41 - (void) start;
42 - (void) stop;
43 - (void) freeAllNodes;
44 - (void) update:(NSTimer *)timer;
45 - (void) log:(NSString *)string;
46 - (void) selectSynthdef:(NSString *)string;
48 @end