From d18dfd82e75c2de617eec2ca69edaf156643ba99 Mon Sep 17 00:00:00 2001 From: Niels Elburg Date: Fri, 23 Mar 2007 11:47:49 +0000 Subject: [PATCH] woops lost sounds fix it git-svn-id: svn://code.dyne.org/veejay/trunk@872 eb8d1916-c9e9-0310-b8de-cf0c9472ead5 --- veejay-1.0/veejay-server/bio2jack/bio2jack.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/veejay-1.0/veejay-server/bio2jack/bio2jack.c b/veejay-1.0/veejay-server/bio2jack/bio2jack.c index 834d4c83..57dd5168 100644 --- a/veejay-1.0/veejay-server/bio2jack/bio2jack.c +++ b/veejay-1.0/veejay-server/bio2jack/bio2jack.c @@ -169,9 +169,10 @@ typedef struct jack_driver_s jack_ringbuffer_t *pPlayPtr; /* the playback ringbuffer */ jack_ringbuffer_t *pRecPtr; /* the recording ringbuffer */ - -// SRC_STATE *output_src; /* SRC object for the output stream */ -// SRC_STATE *input_src; /* SRC object for the output stream */ +/* + SRC_STATE *output_src; + SRC_STATE *input_src; +*/ enum status_enum state; /* one of PLAYING, PAUSED, STOPPED, CLOSED, RESET etc */ @@ -694,7 +695,10 @@ JACK_callback(nframes_t nframes, void *arg) drv->num_output_channels); } } - + } +#endif + if( !(drv->output_sample_rate_ratio != 1.0)) + { /* demux the stream: we skip over the number of samples we have output channels as the channel data */ /* is encoded like chan1,chan2,chan3,chan1,chan2,chan3... */ for(i = 0; i < drv->num_output_channels; i++) @@ -703,8 +707,8 @@ JACK_callback(nframes_t nframes, void *arg) (sample_t *) drv->callback_buffer2 + i, (nframes - jackFramesAvailable), drv->num_output_channels); } + } -#endif } /* handle record data, if any */