Cortex: Fix build on x86_64 (and others?)
This commit is contained in:
@@ -11,5 +11,5 @@ Application cortex_logging_consumer.media_addon :
|
||||
NodeHarnessWin.cpp
|
||||
LogWriter.cpp
|
||||
LoggingConsumer.cpp
|
||||
: be media
|
||||
: be media [ TargetLibstdc++ ]
|
||||
;
|
||||
|
||||
@@ -232,7 +232,8 @@ LogWriter::HandleMessage(log_what what, const log_message& msg)
|
||||
if (mFilters.find(what) != mFilters.end()) return;
|
||||
|
||||
// always write the message's type and timestamp
|
||||
sprintf(buf, "%-24s : realtime = %Ld, perftime = %Ld\n", log_what_to_string(what), msg.tstamp, msg.now);
|
||||
sprintf(buf, "%-24s : realtime = %" B_PRIdBIGTIME ", perftime = %" B_PRIdBIGTIME "\n",
|
||||
log_what_to_string(what), msg.tstamp, msg.now);
|
||||
mWriteBuf = buf;
|
||||
|
||||
// put any special per-message-type handling here
|
||||
@@ -245,7 +246,8 @@ LogWriter::HandleMessage(log_what what, const log_message& msg)
|
||||
case LOG_BUFFER_RECEIVED:
|
||||
if (msg.buffer_data.offset < 0)
|
||||
{
|
||||
sprintf(buf, "\tstart = %Ld, offset = %Ld\n", msg.buffer_data.start_time, msg.buffer_data.offset);
|
||||
sprintf(buf, "\tstart = %" B_PRIdBIGTIME ", offset = %" B_PRIdBIGTIME "\n",
|
||||
msg.buffer_data.start_time, msg.buffer_data.offset);
|
||||
mWriteBuf += buf;
|
||||
sprintf(buf, "\tBuffer received *LATE*\n");
|
||||
mWriteBuf += buf;
|
||||
@@ -253,18 +255,19 @@ LogWriter::HandleMessage(log_what what, const log_message& msg)
|
||||
break;
|
||||
|
||||
case LOG_SET_PARAM_HANDLED:
|
||||
sprintf(buf, "\tparam id = %ld, value = %f\n", msg.param.id, msg.param.value);
|
||||
sprintf(buf, "\tparam id = %" B_PRId32 ", value = %f\n", msg.param.id, msg.param.value);
|
||||
mWriteBuf += buf;
|
||||
break;
|
||||
|
||||
case LOG_INVALID_PARAM_HANDLED:
|
||||
case LOG_GET_PARAM_VALUE:
|
||||
sprintf(buf, "\tparam id = %ld\n", msg.param.id);
|
||||
sprintf(buf, "\tparam id = %" B_PRId32 "\n", msg.param.id);
|
||||
mWriteBuf += buf;
|
||||
break;
|
||||
|
||||
case LOG_BUFFER_HANDLED:
|
||||
sprintf(buf, "\tstart = %Ld, offset = %Ld\n", msg.buffer_data.start_time, msg.buffer_data.offset);
|
||||
sprintf(buf, "\tstart = %" B_PRIdBIGTIME ", offset = %" B_PRIdBIGTIME "\n",
|
||||
msg.buffer_data.start_time, msg.buffer_data.offset);
|
||||
mWriteBuf += buf;
|
||||
if (msg.buffer_data.offset < 0)
|
||||
{
|
||||
|
||||
@@ -80,11 +80,10 @@ status_t LoggingConsumerAddOn::GetFlavorAt(
|
||||
|
||||
flavor_info* pInfo = new flavor_info;
|
||||
pInfo->internal_id = n;
|
||||
pInfo->name = "LoggingConsumer";
|
||||
pInfo->info =
|
||||
"An add-on version of the LoggingConsumer node.\n"
|
||||
strcpy(pInfo->name, "LoggingConsumer");
|
||||
strcpy(pInfo->info, "An add-on version of the LoggingConsumer node.\n"
|
||||
"See the Be Developer Newsletter III.18: 5 May, 1999\n"
|
||||
"adapted by Eric Moon (4 June, 1999)";
|
||||
"adapted by Eric Moon (4 June, 1999)");
|
||||
pInfo->kinds = B_BUFFER_CONSUMER | B_CONTROLLABLE;
|
||||
pInfo->flavor_flags = 0;
|
||||
pInfo->possible_count = 0;
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include <media/TimeSource.h>
|
||||
#include <media/MediaTheme.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
const int32 BUTTON_CONNECT = 'Cnct';
|
||||
const int32 BUTTON_START = 'Strt';
|
||||
@@ -199,7 +200,7 @@ NodeHarnessWin::MessageReceived(BMessage *msg)
|
||||
// for video input, we need to set the downstream latency for record -> playback
|
||||
bigtime_t latency;
|
||||
r->GetLatencyFor(mConnection.producer, &latency);
|
||||
printf("Setting producer run mode latency to %Ld\n", latency);
|
||||
printf("Setting producer run mode latency to %" B_PRIdBIGTIME "\n", latency);
|
||||
r->SetProducerRunModeDelay(mConnection.producer, latency + 6000);
|
||||
|
||||
// preroll first, to be a good citizen
|
||||
|
||||
Reference in New Issue
Block a user