DWORD err = GetLastError ();
GST_ELEMENT_ERROR (dsoundsrc, RESOURCE, OPEN_READ,
("Unable to open dsound.dll"), (NULL));
- g_print ("0x%x\n", HRESULT_FROM_WIN32 (err));
+ g_print ("0x%lx\n", HRESULT_FROM_WIN32 (err));
return FALSE;
}
}
spec->bytes_per_sample = (spec->width / 8) * spec->channels;
dsoundsrc->bytes_per_sample = spec->bytes_per_sample;
- GST_DEBUG ("latency time: %llu - buffer time: %llu",
+ GST_DEBUG ("latency time: %" G_GUINT64_FORMAT " - buffer time: %" G_GUINT64_FORMAT,
spec->latency_time, spec->buffer_time);
/* Buffer-time should be allways more than 2*latency */
spec->segtotal = spec->width * (wfx.nAvgBytesPerSec / spec->segsize);
- GST_DEBUG ("bytes/sec: %d, buffer size: %d, segsize: %d, segtotal: %d",
+ GST_DEBUG ("bytes/sec: %lu, buffer size: %d, segsize: %d, segtotal: %d",
wfx.nAvgBytesPerSec,
dsoundsrc->buffer_size, spec->segsize, spec->segtotal);