2007-10-12 01:03:12 +00:00
|
|
|
//
|
|
|
|
// DumbFile.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 5/29/06.
|
|
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import <Dumb/dumb.h>
|
2013-09-28 03:24:23 +00:00
|
|
|
#import <Dumb/it.h>
|
|
|
|
|
2007-10-12 01:03:12 +00:00
|
|
|
#import "Plugin.h"
|
|
|
|
|
2013-10-05 02:25:45 +00:00
|
|
|
extern DUMBFILE *dumbfile_open_memory_and_free(char *data, long size);
|
2013-10-04 15:14:47 +00:00
|
|
|
|
2007-10-12 01:03:12 +00:00
|
|
|
@interface DumbDecoder : NSObject <CogDecoder> {
|
|
|
|
DUH *duh;
|
|
|
|
DUH_SIGRENDERER *dsr;
|
2013-10-05 21:15:09 +00:00
|
|
|
sample_t **sampptr;
|
2022-02-07 05:49:27 +00:00
|
|
|
|
2007-10-12 01:03:12 +00:00
|
|
|
id<CogSource> source;
|
|
|
|
long length;
|
2022-02-07 05:49:27 +00:00
|
|
|
|
|
|
|
long loops;
|
|
|
|
long fadeTotal;
|
|
|
|
long fadeRemain;
|
2007-10-12 01:03:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)setSource:(id<CogSource>)s;
|
|
|
|
- (id<CogSource>)source;
|
|
|
|
- (void)cleanUp;
|
|
|
|
@end
|