Change to the future render api, hopefully float support will be available eventually. Also change to allocate the sample buffers from the heap instead of the stack.
44 lines
800 B
Objective-C
44 lines
800 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/streamfile.h>
|
|
#import <libvgmstream/vgmstream.h>
|
|
|
|
#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
|
|
|
|
@interface VGMDecoder : NSObject <CogDecoder> {
|
|
VGMSTREAM *stream;
|
|
|
|
BOOL playForever;
|
|
BOOL canPlayForever;
|
|
int loopCount;
|
|
double fadeTime;
|
|
int sampleRate;
|
|
int channels;
|
|
int bitrate;
|
|
long totalFrames;
|
|
long framesRead;
|
|
|
|
void *sample_buf;
|
|
void *sample_buf_temp;
|
|
}
|
|
@end
|