Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 88 lines (66 sloc) 1.391 kb
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
//
// Playback.h
// cfxr
//
// Created by Joachim Bengtsson on 2008-05-17.
// Copyright 2008 Third Cog Software. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "Sound.h"

@protocol PlaybackDelegate;

@interface Playback : NSObject {


bool filter_on;

bool playing_sample;
int phase;
double fperiod;
double fmaxperiod;
double fslide;
double fdslide;
int period;
float square_duty;
float square_slide;
int env_stage;
int env_time;
int env_length[3];
float env_vol;
float fphase;
float fdphase;
int iphase;
float phaser_buffer[1024];
int ipp;
float noise_buffer[32];
float fltp;
float fltdp;
float fltw;
float fltw_d;
float fltdmp;
float fltphp;
float flthp;
float flthp_d;
float vib_phase;
float vib_speed;
float vib_amp;
int rep_time;
int rep_limit;
int arp_time;
int arp_limit;
double arp_mod;

float* vselected;


int file_sampleswritten;
float filesample;
int fileacc;

bool mute_stream;

float masterVolume;

Sound *ps;

id<NSObject, PlaybackDelegate> delegate;
}
+(Playback*)playback;

-(void)play:(Sound*)sound;
-(BOOL)export:(Sound*)sound to:(NSString*)path error:(NSError**)error;

@property (retain) Sound *playingSound;
@property (assign) id<NSObject, PlaybackDelegate> delegate;

@property (assign) float masterVolume;
@end



@protocol PlaybackDelegate
-(void)playbackStoppedPlaying:(Playback*)playback_;
@end


Something went wrong with that request. Please try again.