Cog/Plugins/vgmstream/vgmstream/VGMDecoder.h
Christopher Snowhill 2755ce5e64 VGMStream: Considerably rewrite plugin interface
It was about time to rewrite this anyway. Now adapted to the new public
interface API.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-03-23 16:13:24 -07:00

42 lines
753 B
Objective-C

//
// VGMDecoder.h
// vgmstream
//
// Created by Christopher Snowhill on 02/25/14.
// Copyright 2014 __NoWork, Inc__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <libvgmstream/libvgmstream.h>
#import "Plugin.h"
@interface VGMInfoCache : NSObject {
NSMutableDictionary *storage;
}
+ (id)sharedCache;
- (void)stuffURL:(NSURL *)url stream:(libvgmstream_t *)stream;
- (NSDictionary *)getPropertiesForURL:(NSURL *)url;
- (NSDictionary *)getMetadataForURL:(NSURL *)url;
@end
@interface VGMDecoder : NSObject <CogDecoder> {
libvgmstream_t *stream;
BOOL formatFloat;
BOOL playForever;
BOOL canPlayForever;
int loopCount;
double fadeTime;
int sampleRate;
int channels;
int bitrate;
long totalFrames;
long framesRead;
}
@end