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> {
|
2022-02-07 05:49:27 +00:00
|
|
|
openmpt::module *mod;
|
|
|
|
std::vector<float> left;
|
|
|
|
std::vector<float> right;
|
|
|
|
|
2021-12-26 11:29:43 +00:00
|
|
|
id<CogSource> source;
|
2022-02-07 05:49:27 +00:00
|
|
|
long length;
|
2021-12-26 11:29:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)setSource:(id<CogSource>)s;
|
|
|
|
- (id<CogSource>)source;
|
|
|
|
- (void)cleanUp;
|
|
|
|
@end
|