Cog/Plugins/Vorbis/VorbisDecoder.h
Christopher Snowhill 0931686a78 [Ogg Vorbis / Opus Inputs] Fix streaming titles
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>
2022-06-17 10:27:17 -07:00

56 lines
938 B
Objective-C

//
// VorbisFile.h
// zyVorbis
//
// Created by Vincent Spader on 1/22/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "Plugin.h"
#import <Cocoa/Cocoa.h>
// config.h things
#define __MACOSX__
#define HAVE_CONFIG_H
#import <vorbis/codec.h>
#import <vorbis/vorbisfile.h>
#undef __MACOSX__
#undef HAVE_CONFIG_H
@interface VorbisDecoder : NSObject <CogDecoder> {
id<CogSource> source;
OggVorbis_File vorbisRef;
int currentSection;
int lastSection;
BOOL seekable;
int bitrate;
int channels;
float frequency;
long totalFrames;
NSString *artist;
NSString *albumartist;
NSString *album;
NSString *title;
NSString *genre;
NSNumber *year;
NSNumber *track;
NSNumber *disc;
float replayGainAlbumGain;
float replayGainAlbumPeak;
float replayGainTrackGain;
float replayGainTrackPeak;
NSString *icygenre;
NSString *icyalbum;
NSString *icyartist;
NSString *icytitle;
NSData *albumArt;
}
@end