Cog/Plugins/vgmstream/vgmstream/VGMDecoder.h

45 lines
800 B
C
Raw Normal View History

2014-02-26 04:50:54 -03: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 06:59:59 -04:00
#import <libvgmstream/streamfile.h>
#import <libvgmstream/vgmstream.h>
2014-02-26 04:50:54 -03:00
#import "Plugin.h"
@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 04:50:54 -03:00
@interface VGMDecoder : NSObject <CogDecoder> {
VGMSTREAM *stream;
2014-02-26 04:50:54 -03:00
BOOL playForever;
BOOL canPlayForever;
int loopCount;
double fadeTime;
int sampleRate;
int channels;
int bitrate;
2014-02-26 04:50:54 -03:00
long totalFrames;
long framesRead;
void *sample_buf;
void *sample_buf_temp;
2014-02-26 04:50:54 -03:00
}
@end