2021-12-26 11:29:43 +00:00
|
|
|
//
|
|
|
|
// OMPTDecoder.h
|
|
|
|
// OpenMPT
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 1/4/18.
|
|
|
|
// Copyright 2018 __LoSnoCo__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2022-01-07 07:53:39 +00:00
|
|
|
#import <libOpenMPTOld/libopenmpt.hpp>
|
2021-12-26 11:29:43 +00:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#import "Plugin.h"
|
|
|
|
|
|
|
|
@interface OMPTOldDecoder : NSObject <CogDecoder> {
|
|
|
|
openmpt::module *mod;
|
|
|
|
std::vector<float> left;
|
|
|
|
std::vector<float> right;
|
|
|
|
|
|
|
|
id<CogSource> source;
|
|
|
|
long length;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)setSource:(id<CogSource>)s;
|
|
|
|
- (id<CogSource>)source;
|
|
|
|
- (void)cleanUp;
|
|
|
|
@end
|