Instead of rendering the ReplayGain values into the stream on decode, as it did before. This allows exposing the values to the properties dialog. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
42 lines
634 B
Objective-C
42 lines
634 B
Objective-C
//
|
|
// OpusDecoder.h
|
|
// Opus
|
|
//
|
|
// Created by Christopher Snowhill on 10/4/13.
|
|
// Copyright 2013 __NoWork, Inc__. All rights reserved.
|
|
//
|
|
|
|
#import "Plugin.h"
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
// config.h things
|
|
#define __MACOSX__
|
|
#define HAVE_CONFIG_H
|
|
|
|
#import <Opus/opusfile.h>
|
|
|
|
#undef __MACOSX__
|
|
#undef HAVE_CONFIG_H
|
|
|
|
@interface OpusFile : NSObject <CogDecoder> {
|
|
id<CogSource> source;
|
|
|
|
OggOpusFile* opusRef;
|
|
int currentSection;
|
|
int lastSection;
|
|
|
|
BOOL seekable;
|
|
int bitrate;
|
|
int channels;
|
|
long totalFrames;
|
|
|
|
double track_gain;
|
|
double album_gain;
|
|
|
|
NSString *genre;
|
|
NSString *album;
|
|
NSString *artist;
|
|
NSString *title;
|
|
}
|
|
|
|
@end
|