Fix streaming metadata titles being overridden by the Icecast stream strings. Now the Icy metadata only overrides missing strings, so Vorbis Comments take priority. Fixes #275 Signed-off-by: Christopher Snowhill <kode54@gmail.com>
45 lines
725 B
Objective-C
45 lines
725 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;
|
|
|
|
NSString *artist;
|
|
NSString *albumartist;
|
|
NSString *album;
|
|
NSString *title;
|
|
NSString *genre;
|
|
NSNumber *year;
|
|
NSNumber *track;
|
|
NSNumber *disc;
|
|
float replayGainAlbumGain;
|
|
float replayGainTrackGain;
|
|
|
|
NSString *icygenre;
|
|
NSString *icyalbum;
|
|
NSString *icyartist;
|
|
NSString *icytitle;
|
|
|
|
NSData *albumArt;
|
|
}
|
|
|
|
@end
|