Fix opus includes

This commit is contained in:
badaix 2024-06-01 12:04:18 +02:00
parent 5650397fd9
commit a31238a2fb
3 changed files with 9 additions and 1 deletions

View file

@ -338,7 +338,7 @@ if(WIN32)
find_package_handle_standard_args(Vorbis REQUIRED VORBIS_INCLUDE_DIRS find_package_handle_standard_args(Vorbis REQUIRED VORBIS_INCLUDE_DIRS
VORBIS_LIBRARIES) VORBIS_LIBRARIES)
find_path(OPUS_INCLUDE_DIRS opus.h) find_path(OPUS_INCLUDE_DIRS opus/opus.h)
find_library(OPUS_LIBRARIES opus) find_library(OPUS_LIBRARIES opus)
find_package_handle_standard_args(Opus REQUIRED OPUS_INCLUDE_DIRS find_package_handle_standard_args(Opus REQUIRED OPUS_INCLUDE_DIRS
OPUS_LIBRARIES) OPUS_LIBRARIES)

View file

@ -23,7 +23,11 @@
#include "decoder/decoder.hpp" #include "decoder/decoder.hpp"
// 3rd party headers // 3rd party headers
#ifdef MACOS
#include <opus.h> #include <opus.h>
#else
#include <opus/opus.h>
#endif
// standard headers // standard headers
#include <vector> #include <vector>

View file

@ -24,7 +24,11 @@
#include "encoder.hpp" #include "encoder.hpp"
// 3rd party headers // 3rd party headers
#ifdef MACOS
#include <opus.h> #include <opus.h>
#else
#include <opus/opus.h>
#endif
namespace encoder namespace encoder