2014-02-26 07:50:54 +00:00
|
|
|
//
|
|
|
|
// VGMDecoder.h
|
|
|
|
// vgmstream
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 02/25/14.
|
|
|
|
// Copyright 2014 __NoWork, Inc__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2018-06-28 10:59:59 +00:00
|
|
|
#import <libvgmstream/vgmstream.h>
|
|
|
|
#import <libvgmstream/streamfile.h>
|
2014-02-26 07:50:54 +00:00
|
|
|
|
|
|
|
#import "Plugin.h"
|
|
|
|
|
2019-10-19 03:21:27 +00:00
|
|
|
@interface VGMInfoCache : NSObject {
|
|
|
|
NSMutableDictionary *storage;
|
|
|
|
}
|
|
|
|
|
|
|
|
+(id)sharedCache;
|
|
|
|
|
|
|
|
-(void)stuffURL:(NSURL *)url stream:(VGMSTREAM *)stream;
|
|
|
|
-(NSDictionary*)getPropertiesForURL:(NSURL *)url;
|
|
|
|
-(NSDictionary*)getMetadataForURL:(NSURL *)url;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2014-02-26 07:50:54 +00:00
|
|
|
@interface VGMDecoder : NSObject <CogDecoder> {
|
|
|
|
VGMSTREAM *stream;
|
|
|
|
|
2020-09-22 05:33:18 +00:00
|
|
|
BOOL playForever;
|
2021-06-15 08:34:01 +00:00
|
|
|
BOOL canPlayForever;
|
2014-02-26 07:50:54 +00:00
|
|
|
int sampleRate;
|
|
|
|
int channels;
|
2015-02-09 03:20:24 +00:00
|
|
|
int bitrate;
|
2014-02-26 07:50:54 +00:00
|
|
|
long totalFrames;
|
|
|
|
long framesRead;
|
|
|
|
}
|
|
|
|
@end
|