mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
audiodecoder: Fix compile with ENABLE_FFMPEGDEC
This commit is contained in:
@@ -55,7 +55,10 @@ CAudioMetaData::CAudioMetaData( const CAudioMetaData& src )
|
||||
: type( src.type ), type_info( src.type_info ),
|
||||
filesize( src.filesize ), bitrate( src.bitrate ),
|
||||
avg_bitrate( src.avg_bitrate ), samplerate( src.samplerate ),
|
||||
layer( src.layer ), mode( src.mode ), total_time( src.total_time ),
|
||||
#ifndef ENABLE_FFMPEGDEC
|
||||
layer( src.layer ), mode( src.mode ),
|
||||
#endif
|
||||
total_time( src.total_time ),
|
||||
audio_start_pos( src.audio_start_pos ), vbr( src.vbr ),
|
||||
hasInfoOrXingTag( src.hasInfoOrXingTag ), artist( src.artist ),
|
||||
title( src.title ), album( src.album ), sc_station( src.sc_station ),
|
||||
@@ -78,8 +81,10 @@ void CAudioMetaData::operator=( const CAudioMetaData& src )
|
||||
bitrate = src.bitrate;
|
||||
avg_bitrate = src.avg_bitrate;
|
||||
samplerate = src.samplerate;
|
||||
#ifndef ENABLE_FFMPEGDEC
|
||||
layer = src.layer;
|
||||
mode = src.mode;
|
||||
#endif
|
||||
total_time = src.total_time;
|
||||
audio_start_pos = src.audio_start_pos;
|
||||
vbr = src.vbr;
|
||||
|
@@ -36,8 +36,15 @@
|
||||
#ifndef __AUDIO_METADATA__
|
||||
#define __AUDIO_METADATA__
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifndef ENABLE_FFMPEGDEC
|
||||
#include <mad.h>
|
||||
#endif
|
||||
|
||||
class CAudioMetaData
|
||||
{
|
||||
@@ -69,8 +76,10 @@ public:
|
||||
unsigned int bitrate; /* overall bitrate, vbr file: current bitrate */
|
||||
unsigned int avg_bitrate; /* average bitrate in case of vbr file */
|
||||
unsigned int samplerate;
|
||||
#ifndef ENABLE_FFMPEGDEC
|
||||
enum mad_layer layer;
|
||||
enum mad_mode mode;
|
||||
#endif
|
||||
time_t total_time;
|
||||
long audio_start_pos; /* position of first audio frame */
|
||||
bool vbr;
|
||||
|
Reference in New Issue
Block a user