2013-10-15 14:49:53 +00:00
|
|
|
//
|
|
|
|
// MIDIDecoder.h
|
|
|
|
// MIDI
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 10/15/13.
|
|
|
|
// Copyright 2013 __NoWork, Inc__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import "MIDIPlayer.h"
|
|
|
|
|
|
|
|
#import "Plugin.h"
|
|
|
|
|
2016-03-14 01:48:17 +00:00
|
|
|
class AUPlayer;
|
2022-02-09 02:29:03 +00:00
|
|
|
class BMPlayer;
|
2016-01-21 05:11:05 +00:00
|
|
|
|
2013-10-15 14:49:53 +00:00
|
|
|
@interface MIDIDecoder : NSObject <CogDecoder> {
|
2022-02-07 05:49:27 +00:00
|
|
|
id<CogSource> source;
|
|
|
|
int track_num;
|
2016-06-30 05:12:58 +00:00
|
|
|
|
2022-02-09 02:29:03 +00:00
|
|
|
BMPlayer* bmplayer;
|
2022-02-07 05:49:27 +00:00
|
|
|
AUPlayer* auplayer;
|
2013-10-15 14:49:53 +00:00
|
|
|
MIDIPlayer* player;
|
2022-02-07 05:49:27 +00:00
|
|
|
midi_container midi_file;
|
|
|
|
|
2022-06-21 05:10:43 +00:00
|
|
|
const void* sbHandle;
|
2022-06-20 10:35:29 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
NSString* globalSoundFontPath;
|
|
|
|
BOOL soundFontsAssigned;
|
|
|
|
BOOL isLooped;
|
|
|
|
|
2022-07-02 05:06:08 +00:00
|
|
|
double sampleRate;
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
long totalFrames;
|
|
|
|
long framesLength;
|
|
|
|
long framesFade;
|
|
|
|
long framesRead;
|
2013-10-15 14:49:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|