Port examples to Mac

pull/38/head
Nick Porcino 7 years ago
parent d372227a91
commit ae0f455615

@ -260,6 +260,14 @@ if(BUILD_EXAMPLE)
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
) )
target_link_libraries(${NQR_EXAMPLE_APP_NAME} PUBLIC libnyquist libopus libwavpack) if(APPLE)
set(DARWIN_LIBS
"-framework AudioToolbox"
"-framework AudioUnit"
"-framework Accelerate"
"-framework CoreAudio"
"-framework Cocoa")
ENDIF(APPLE)
target_link_libraries(${NQR_EXAMPLE_APP_NAME} PUBLIC ${DARWIN_LIBS} libnyquist libopus libwavpack)
endif() endif()

@ -269,7 +269,7 @@ class Dither
DitherType d; DitherType d;
public: public:
Dither(DitherType d) : distribution(-0.5f, +0.5f), d(d), previous(0.f) {} Dither(DitherType d) : distribution(-0.5f, +0.5f), previous(0.f), d(d) {}
float operator()(float s) float operator()(float s)
{ {

Loading…
Cancel
Save