multi_audio.media_addon: fixes 64 bit warnings

This commit is contained in:
Jérôme Duval
2013-05-10 21:03:20 +02:00
parent e1a77daa69
commit 217c8a17a8
@@ -364,7 +364,7 @@ MultiAudioNode::NodeRegistered()
input->destination.port = ControlPort(); input->destination.port = ControlPort();
input->destination.id = fInputs.CountItems(); input->destination.id = fInputs.CountItems();
input->node = Node(); input->node = Node();
sprintf(input->name, "output %ld", input->destination.id); sprintf(input->name, "output %" B_PRId32, input->destination.id);
currentInput = new node_input(*input, fOutputPreferredFormat); currentInput = new node_input(*input, fOutputPreferredFormat);
currentInput->fPreferredFormat.u.raw_audio.channel_count = 1; currentInput->fPreferredFormat.u.raw_audio.channel_count = 1;
@@ -414,7 +414,7 @@ MultiAudioNode::NodeRegistered()
output->source.port = ControlPort(); output->source.port = ControlPort();
output->source.id = fOutputs.CountItems(); output->source.id = fOutputs.CountItems();
output->node = Node(); output->node = Node();
sprintf(output->name, "input %ld", output->source.id); sprintf(output->name, "input %" B_PRId32, output->source.id);
currentOutput = new node_output(*output, fInputPreferredFormat); currentOutput = new node_output(*output, fInputPreferredFormat);
currentOutput->fPreferredFormat.u.raw_audio.channel_count = 1; currentOutput->fPreferredFormat.u.raw_audio.channel_count = 1;
@@ -1014,8 +1014,10 @@ MultiAudioNode::Disconnect(const media_source& what,
delete channel->fBufferGroup; delete channel->fBufferGroup;
channel->fBufferGroup = NULL; channel->fBufferGroup = NULL;
} else { } else {
fprintf(stderr, "\tDisconnect() called with wrong source/destination (%ld/%ld), ours is (%ld/%ld)\n", fprintf(stderr, "\tDisconnect() called with wrong source/destination ("
what.id, where.id, channel->fOutput.source.id, channel->fOutput.destination.id); "%" B_PRId32 "/%" B_PRId32 "), ours is (%" B_PRId32 "/%" B_PRId32
")\n", what.id, where.id, channel->fOutput.source.id,
channel->fOutput.destination.id);
} }
} }
@@ -1047,7 +1049,7 @@ MultiAudioNode::LateNoticeReceived(const media_source& what, bigtime_t howMuch,
fInternalLatency += howMuch; fInternalLatency += howMuch;
SetEventLatency(fLatency + fInternalLatency); SetEventLatency(fLatency + fInternalLatency);
fprintf(stderr, "\tincreasing latency to %Ld\n", fprintf(stderr, "\tincreasing latency to %" B_PRIdBIGTIME"\n",
fLatency + fInternalLatency); fLatency + fInternalLatency);
} else { } else {
// The other run modes dictate various strategies for sacrificing data // The other run modes dictate various strategies for sacrificing data
@@ -1122,7 +1124,7 @@ MultiAudioNode::HandleEvent(const media_timed_event* event, bigtime_t lateness,
_HandleParameter(event, lateness, realTimeEvent); _HandleParameter(event, lateness, realTimeEvent);
break; break;
default: default:
fprintf(stderr," unknown event type: %li\n", event->type); fprintf(stderr," unknown event type: %" B_PRId32 "\n", event->type);
break; break;
} }
} }
@@ -1158,7 +1160,7 @@ MultiAudioNode::_HandleBuffer(const media_timed_event* event,
// lateness doesn't matter in offline mode or in recording mode // lateness doesn't matter in offline mode or in recording mode
//mLateBuffers++; //mLateBuffers++;
NotifyLateProducer(channel->fInput.source, -howEarly, performanceTime); NotifyLateProducer(channel->fInput.source, -howEarly, performanceTime);
fprintf(stderr," <- LATE BUFFER : %lli\n", howEarly); fprintf(stderr," <- LATE BUFFER : %" B_PRIdBIGTIME "\n", howEarly);
buffer->Recycle(); buffer->Recycle();
} else { } else {
//WriteBuffer(buffer, *channel); //WriteBuffer(buffer, *channel);