mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Adjusted the new audio backends to compile on Linux
This commit is contained in:
parent
5e0e645f46
commit
3fbfde39a5
@ -7,9 +7,10 @@
|
||||
# FLAC_LIBRARY
|
||||
#
|
||||
|
||||
find_path(FLAC_INCLUDE_DIR flac/stream_decoder.h)
|
||||
find_path(FLAC_INCLUDE_DIR FLAC/all.h)
|
||||
find_path(FLAC_INCLUDE_DIR FLAC/stream_decoder.h)
|
||||
|
||||
find_library(FLAC_LIBRARY NAMES flac)
|
||||
find_library(FLAC_LIBRARY NAMES FLAC)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(FLAC DEFAULT_MSG FLAC_LIBRARY FLAC_INCLUDE_DIR)
|
||||
|
@ -13,9 +13,10 @@ find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h)
|
||||
find_library(OGG_LIBRARY NAMES ogg)
|
||||
find_library(VORBIS_LIBRARY NAMES vorbis)
|
||||
find_library(VORBISFILE_LIBRARY NAMES vorbisfile)
|
||||
find_library(VORBISENC_LIBRARY NAMES vorbisenc)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(VORBIS DEFAULT_MSG VORBIS_LIBRARY VORBISFILE_LIBRARY OGG_LIBRARY VORBIS_INCLUDE_DIR OGG_INCLUDE_DIR)
|
||||
find_package_handle_standard_args(VORBIS DEFAULT_MSG VORBIS_LIBRARY VORBISFILE_LIBRARY VORBISENC_LIBRARY OGG_LIBRARY VORBIS_INCLUDE_DIR OGG_INCLUDE_DIR)
|
||||
|
||||
set(VORBIS_INCLUDE_DIRS ${OGG_INCLUDE_DIR} ${VORBIS_INCLUDE_DIR})
|
||||
set(VORBIS_LIBRARIES ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY} ${OGG_LIBRARY})
|
||||
set(VORBIS_LIBRARIES ${VORBISENC_LIBRARY} ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY} ${OGG_LIBRARY})
|
||||
|
@ -30,6 +30,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Config.hpp>
|
||||
#include <SFML/System/InputStream.hpp>
|
||||
#include <SFML/System/Export.hpp>
|
||||
#include <fstream>
|
||||
|
||||
|
||||
@ -39,7 +40,7 @@ namespace sf
|
||||
/// \brief Implementation of input stream based on a file
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
class FileInputStream : public InputStream
|
||||
class SFML_SYSTEM_API FileInputStream : public InputStream
|
||||
{
|
||||
public :
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Config.hpp>
|
||||
#include <SFML/System/InputStream.hpp>
|
||||
#include <SFML/System/Export.hpp>
|
||||
#include <cstdlib>
|
||||
|
||||
|
||||
@ -39,7 +40,7 @@ namespace sf
|
||||
/// \brief Implementation of input stream based on a memory chunk
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
class MemoryInputStream : public InputStream
|
||||
class SFML_SYSTEM_API MemoryInputStream : public InputStream
|
||||
{
|
||||
public :
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundFileReader.hpp>
|
||||
#include <flac/stream_decoder.h>
|
||||
#include <FLAC/stream_decoder.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundFileWriter.hpp>
|
||||
#include <flac/stream_encoder.h>
|
||||
#include <FLAC/stream_encoder.h>
|
||||
#include <vector>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user