Cog/Plugins/MIDI/MIDI/MIDIDecoder.h
Christopher Snowhill 8dddf6a115 [Sandbox] Refine broker to return handle to token
Sandbox Broker now returns a handle to the exact path object that was
retained by the caller, so it will be released correctly, regardless of
what happens to the list of bookmarked paths.

Also refined the bookmark path comparison function. For existing paths,
it will find the first match. For new paths, it will prefer the longest
path instead, to try to find the deepest matching bookmark.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-06-20 22:10:43 -07:00

39 lines
607 B
Objective-C

//
// 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"
class AUPlayer;
class BMPlayer;
@interface MIDIDecoder : NSObject <CogDecoder> {
id<CogSource> source;
int track_num;
BMPlayer* bmplayer;
AUPlayer* auplayer;
MIDIPlayer* player;
midi_container midi_file;
const void* sbHandle;
NSString* globalSoundFontPath;
BOOL soundFontsAssigned;
BOOL isLooped;
long totalFrames;
long framesLength;
long framesFade;
long framesRead;
}
@end