2016-01-05 04:12:47 +00:00
|
|
|
//
|
|
|
|
// CSMachine.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 04/01/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2016-03-05 19:45:09 +00:00
|
|
|
#import "CSOpenGLView.h"
|
2016-01-15 01:33:22 +00:00
|
|
|
#import "AudioQueue.h"
|
2016-01-05 04:12:47 +00:00
|
|
|
|
|
|
|
@interface CSMachine : NSObject
|
|
|
|
|
|
|
|
- (void)runForNumberOfCycles:(int)numberOfCycles;
|
2016-06-01 02:16:20 +00:00
|
|
|
|
2016-06-13 23:30:41 +00:00
|
|
|
- (float)idealSamplingRateFromRange:(NSRange)range;
|
|
|
|
- (void)setAudioSamplingRate:(float)samplingRate;
|
2016-06-01 23:04:07 +00:00
|
|
|
|
2016-04-12 03:12:56 +00:00
|
|
|
- (void)setView:(CSOpenGLView *)view aspectRatio:(float)aspectRatio;
|
2016-06-01 02:16:20 +00:00
|
|
|
- (void)drawViewForPixelSize:(CGSize)pixelSize onlyIfDirty:(BOOL)onlyIfDirty;
|
2016-01-05 04:12:47 +00:00
|
|
|
|
2016-01-15 01:33:22 +00:00
|
|
|
@property (nonatomic, weak) AudioQueue *audioQueue;
|
2016-04-25 00:34:25 +00:00
|
|
|
@property (nonatomic, readonly) CSOpenGLView *view;
|
2016-01-05 04:12:47 +00:00
|
|
|
|
|
|
|
@end
|