Cog/Plugins/sidplay/SidDecoder.h
Christopher Snowhill e695e33537 SID Input: Bring back file hints, better this time
Now file hint stashes the whole file in memory, so that any other
threads reading the file at the same time will just grab the same memory
block and read it, rather than opening the file repeatedly.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-11 04:43:20 -08:00

42 lines
742 B
Objective-C

//
// DumbFile.h
// Cog
//
// Created by Vincent Spader on 5/29/06.
// Copyright 2006 Vincent Spader. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <sidplayfp/SidConfig.h>
#import <sidplayfp/SidInfo.h>
#import <sidplayfp/SidTune.h>
#import <sidplayfp/SidTuneInfo.h>
#import <sidplayfp/event.h>
#import <sidplayfp/sidbuilder.h>
#import <sidplayfp/sidplayfp.h>
#import "Plugin.h"
@interface SidDecoder : NSObject <CogDecoder> {
SidTune *tune;
sidplayfp *engine;
sidbuilder *builder;
id<CogSource> source;
long length;
NSString *currentUrl;
BOOL hintAdded;
int n_channels;
long renderedTotal;
long fadeTotal;
long fadeRemain;
}
- (void)setSource:(id<CogSource>)s;
- (id<CogSource>)source;
- (void)cleanUp;
@end