Cog/Plugins/Opus/Opus/OpusDecoder.h
Christopher Snowhill 59d54f3190 [Inputs] Severely reduce metadata update intervals
The Vorbis, Opus, MAD MPEG, and especially the FFmpeg inputs needed to
have their metadata update intervals severely reduced, to reduce CPU
usage, especially on files with lots of tags. Interval reduced to only
once per second.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-07-21 03:53:14 -07:00

38 lines
600 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>
#import <opusfile.h>
@interface OpusFile : NSObject <CogDecoder> {
id<CogSource> source;
OggOpusFile* opusRef;
int currentSection;
int lastSection;
BOOL seekable;
int bitrate;
int channels;
long totalFrames;
int metadataUpdateInterval;
int metadataUpdateCount;
NSDictionary *metaDict;
NSDictionary *icyMetaDict;
NSData *albumArt;
float replayGainAlbumGain;
float replayGainTrackGain;
}
@end