2013-10-15 11:49:53 -03: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-13 22:48:17 -03:00
|
|
|
class AUPlayer;
|
2022-02-08 23:29:03 -03:00
|
|
|
class BMPlayer;
|
2016-01-21 02:11:05 -03:00
|
|
|
|
2013-10-15 11:49:53 -03:00
|
|
|
@interface MIDIDecoder : NSObject <CogDecoder> {
|
2022-02-07 02:49:27 -03:00
|
|
|
id<CogSource> source;
|
|
|
|
int track_num;
|
2016-06-30 01:12:58 -04:00
|
|
|
|
2022-02-08 23:29:03 -03:00
|
|
|
BMPlayer* bmplayer;
|
2022-02-07 02:49:27 -03:00
|
|
|
AUPlayer* auplayer;
|
2013-10-15 11:49:53 -03:00
|
|
|
MIDIPlayer* player;
|
2022-02-07 02:49:27 -03:00
|
|
|
midi_container midi_file;
|
|
|
|
|
2022-06-21 01:10:43 -04:00
|
|
|
const void* sbHandle;
|
2022-06-20 06:35:29 -04:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
NSString* globalSoundFontPath;
|
|
|
|
BOOL soundFontsAssigned;
|
|
|
|
BOOL isLooped;
|
|
|
|
|
2022-07-02 01:06:08 -04:00
|
|
|
double sampleRate;
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
long totalFrames;
|
|
|
|
long framesLength;
|
|
|
|
long framesFade;
|
|
|
|
long framesRead;
|
2013-10-15 11:49:53 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|