AudioFileFlac: allow compilation withoug FLAC support

Compilation of AudioFileFlac source files failed when there's been
no FLAC support on the system. Fix this by adding according #ifdef's.
This commit is contained in:
Tobias Doerffel
2009-08-28 23:56:15 +02:00
parent ee63a13f2d
commit b4526ec1b4
2 changed files with 10 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
* into a flac file. This is used for song-export.
*
* Copyright (c) 2009 Andrew Kelley <superjoe30@gmail.com>
*
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* This program is free software; you can redistribute it and/or
@@ -26,6 +26,10 @@
#ifndef _AUDIO_FILE_FLAC_H_
#define _AUDIO_FILE_FLAC_H_
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_FLAC
#include <QFile>
#include "AudioFileDevice.h"
@@ -82,6 +86,7 @@ private:
} ;
#endif
#endif //_AUDIO_FILE_FLAC_H_

View File

@@ -25,6 +25,8 @@
#include "AudioFileFlac.h"
#ifdef LMMS_HAVE_FLAC
#include <QtDebug>
#include "lmms_basics.h"
@@ -122,4 +124,6 @@ AudioFileFlac::~AudioFileFlac()
finishEncoding();
}
#endif
/* vim: set tw=0 noexpandtab: */