Skip to content
Snippets Groups Projects
Commit 026932ee authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

missing #ifdef

parent cd88513b
No related branches found
No related tags found
No related merge requests found
Pipeline #23027 passed
...@@ -72,6 +72,8 @@ Speaker::~Speaker() { ...@@ -72,6 +72,8 @@ Speaker::~Speaker() {
} }
void Speaker::_open(int fsize, int sample, int channels) { void Speaker::_open(int fsize, int sample, int channels) {
#ifdef HAVE_PORTAUDIO
if (buffer_) delete buffer_; if (buffer_) delete buffer_;
LOG(INFO) << "Create speaker: " << sample << "," << channels; LOG(INFO) << "Create speaker: " << sample << "," << channels;
...@@ -94,7 +96,6 @@ void Speaker::_open(int fsize, int sample, int channels) { ...@@ -94,7 +96,6 @@ void Speaker::_open(int fsize, int sample, int channels) {
//LOG(INFO) << "OUTPUT LATENCY: " << outputParameters.suggestedLatency; //LOG(INFO) << "OUTPUT LATENCY: " << outputParameters.suggestedLatency;
latency_ = int64_t(outputParameters.suggestedLatency * 1000.0); latency_ = int64_t(outputParameters.suggestedLatency * 1000.0);
#ifdef HAVE_PORTAUDIO
auto err = Pa_OpenStream( auto err = Pa_OpenStream(
&stream_, &stream_,
NULL, NULL,
...@@ -126,7 +127,6 @@ void Speaker::_open(int fsize, int sample, int channels) { ...@@ -126,7 +127,6 @@ void Speaker::_open(int fsize, int sample, int channels) {
#else #else
LOG(INFO) << "Built without portaudio (no sound)"; LOG(INFO) << "Built without portaudio (no sound)";
#endif #endif
} }
void Speaker::queue(int64_t ts, ftl::audio::Frame &frame) { void Speaker::queue(int64_t ts, ftl::audio::Frame &frame) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment