mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-15 01:56:40 +02:00
Fix opus includes
This commit is contained in:
parent
5650397fd9
commit
a31238a2fb
3 changed files with 9 additions and 1 deletions
|
@ -338,7 +338,7 @@ if(WIN32)
|
|||
find_package_handle_standard_args(Vorbis REQUIRED VORBIS_INCLUDE_DIRS
|
||||
VORBIS_LIBRARIES)
|
||||
|
||||
find_path(OPUS_INCLUDE_DIRS opus.h)
|
||||
find_path(OPUS_INCLUDE_DIRS opus/opus.h)
|
||||
find_library(OPUS_LIBRARIES opus)
|
||||
find_package_handle_standard_args(Opus REQUIRED OPUS_INCLUDE_DIRS
|
||||
OPUS_LIBRARIES)
|
||||
|
|
|
@ -23,7 +23,11 @@
|
|||
#include "decoder/decoder.hpp"
|
||||
|
||||
// 3rd party headers
|
||||
#ifdef MACOS
|
||||
#include <opus.h>
|
||||
#else
|
||||
#include <opus/opus.h>
|
||||
#endif
|
||||
|
||||
// standard headers
|
||||
#include <vector>
|
||||
|
|
|
@ -24,7 +24,11 @@
|
|||
#include "encoder.hpp"
|
||||
|
||||
// 3rd party headers
|
||||
#ifdef MACOS
|
||||
#include <opus.h>
|
||||
#else
|
||||
#include <opus/opus.h>
|
||||
#endif
|
||||
|
||||
|
||||
namespace encoder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue