Browse Source

Correct warning.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4499 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 14 years ago
parent
commit
0b4e9a2a2f
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      common/JackNetDriver.cpp
  2. +1
    -1
      common/JackNetManager.cpp
  3. +2
    -1
      common/JackNetTool.h

+ 1
- 1
common/JackNetDriver.cpp View File

@@ -581,7 +581,7 @@ namespace Jack
for (int audio_port_index = 0; audio_port_index < fPlaybackChannels; audio_port_index++) {
#ifdef OPTIMIZED_PROTOCOL
// Port is connected on other side...
if ((uintptr_t)fNetAudioPlaybackBuffer->GetBuffer(audio_port_index) == -1) {
if ((intptr_t)fNetAudioPlaybackBuffer->GetBuffer(audio_port_index) == -1) {
fNetAudioPlaybackBuffer->SetBuffer(audio_port_index, GetOutputBuffer(audio_port_index, true));
} else {
fNetAudioPlaybackBuffer->SetBuffer(audio_port_index, NULL);


+ 1
- 1
common/JackNetManager.cpp View File

@@ -437,7 +437,7 @@ namespace Jack
for (int audio_port_index = 0; audio_port_index < fParams.fSendAudioChannels; audio_port_index++) {

#ifdef OPTIMIZED_PROTOCOL
if ((uintptr_t)fNetAudioCaptureBuffer->GetBuffer(audio_port_index) == -1) {
if ((intptr_t)fNetAudioCaptureBuffer->GetBuffer(audio_port_index) == -1) {
// Port is connected on other side...
fNetAudioCaptureBuffer->SetBuffer(audio_port_index,
static_cast<sample_t*>(jack_port_get_buffer_nulled(fAudioCapturePorts[audio_port_index],


+ 2
- 1
common/JackNetTool.h View File

@@ -585,8 +585,9 @@ namespace Jack
}

fLastSubCycle = sub_cycle;
return res;
}

return res;
}

virtual int RenderToNetwork(char* net_buffer,int sub_cycle, uint32_t& port_num)


Loading…
Cancel
Save