Commit c1b05787 authored by nedko's avatar nedko
Browse files

fix build when celt is not available

when celt is not available HAVE_CELT is defined as 0.
some checks for celt were if 0, others were ifdef
now all of them are if 0

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4350 0c269be4-1314-0410-8aa9-9f06e86f4224
parent f62062ad
......@@ -258,7 +258,7 @@ namespace Jack
break;
case JackCeltEncoder:
#ifdef HAVE_CELT
#if HAVE_CELT
fNetAudioCaptureBuffer = new NetCeltAudioBuffer(&fParams, fParams.fSendAudioChannels, fTxData, fParams.fKBps);
#endif
break;
......@@ -280,7 +280,7 @@ namespace Jack
break;
case JackCeltEncoder:
#ifdef HAVE_CELT
#if HAVE_CELT
fNetAudioPlaybackBuffer = new NetCeltAudioBuffer(&fParams, fParams.fReturnAudioChannels, fRxData, fParams.fKBps);
#endif
break;
......@@ -800,7 +800,7 @@ namespace Jack
break;
case JackCeltEncoder:
#ifdef HAVE_CELT
#if HAVE_CELT
fNetAudioCaptureBuffer = new NetCeltAudioBuffer(&fParams, fParams.fSendAudioChannels, fRxData, fParams.fKBps);
#endif
break;
......@@ -822,7 +822,7 @@ namespace Jack
break;
case JackCeltEncoder:
#ifdef HAVE_CELT
#if HAVE_CELT
fNetAudioPlaybackBuffer = new NetCeltAudioBuffer(&fParams, fParams.fReturnAudioChannels, fTxData, fParams.fKBps);
#endif
break;
......
......@@ -41,7 +41,7 @@ class JackNetOneDriver : public JackAudioDriver
render_payload_to_jack_ports_float(void *packet_payload, jack_nframes_t net_period_down, JSList *capture_ports, JSList *capture_srcs, jack_nframes_t nframes, int dont_htonl_floats);
void
render_jack_ports_to_payload_float(JSList *playback_ports, JSList *playback_srcs, jack_nframes_t nframes, void *packet_payload, jack_nframes_t net_period_up, int dont_htonl_floats );
#ifdef HAVE_CELT
#if HAVE_CELT
void
render_payload_to_jack_ports_celt(void *packet_payload, jack_nframes_t net_period_down, JSList *capture_ports, JSList *capture_srcs, jack_nframes_t nframes);
void
......
......@@ -249,7 +249,7 @@ namespace Jack
// Celt audio buffer *********************************************************************************
#ifdef HAVE_CELT
#if HAVE_CELT
#define KPS 32
#define KPS_DIV 8
......
......@@ -558,7 +558,7 @@ namespace Jack
int RenderToNetwork (int subcycle, size_t total_size );
};
#ifdef HAVE_CELT
#if HAVE_CELT
#include <celt/celt.h>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment