Commit 0b4e9a2a authored by sletz's avatar sletz
Browse files

Correct warning.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4499 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 18c15616
......@@ -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);
......
......@@ -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],
......
......@@ -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)
......
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