ddiakopoulos / libnyquist

:microphone: Cross platform C++11 library for decoding audio (mp3, wav, ogg, opus, flac, etc)
BSD 2-Clause "Simplified" License
534 stars 64 forks source link

Why are alsa/pulseaudio/jack needed on linux ? #72

Open SeleDreams opened 1 year ago

SeleDreams commented 1 year ago

Hi, I was curious about it, isn't this library only meant to help load and read audio files ? in this case why are they needed since from what I know these libraries are meant to handle interfacing with the OS on linux to output sound or get input from microphones etc

atm i could compile my program without specifying one of them but i still get the error on cmake FATAL,On Linux, one of LIBNYQUIST_JACK, LIBNYQUIST_PULSE, or LIBNYQUIST_ASOUND must be set.

meshula commented 1 year ago

They're only needed if you want to build the samples. You can turn off the samples using the cmake option LIBNYQUIST_BUILD_EXAMPLE, setting it to false.