attr.tlength = (ss->rate / 10) * pa_sample_size(ss) * ss->channels;
attr.maxlength = -1;
attr.fragsize = 0;
- debug_msg("rate(%d), samplesize(%d), ch(%d) format(%d)", ss->rate, pa_sample_size(ss), ss->channels, ss->format);
+ debug_msg("rate(%d), samplesize(%zu), ch(%d) format(%d)", ss->rate, pa_sample_size(ss), ss->channels, ss->format);
debug_msg("prebuf(%d), minreq(%d), tlength(%d), maxlength(%d), fragsize(%d)", attr.prebuf, attr.minreq, attr.tlength,
attr.maxlength, attr.fragsize);
h->spec.channels = h->si.channels;
h->spec.format = PA_SAMPLE_S16LE;
- debug_msg("SF_INFO : frames = %lld, samplerate = %d, channels = %d, format = 0x%X, sections = %d, seekable = %d",
+ debug_msg("SF_INFO : frames = %zu, samplerate = %d, channels = %d, format = 0x%X, sections = %d, seekable = %d",
h->si.frames, h->si.samplerate, h->si.channels, h->si.format, h->si.sections, h->si.seekable);
return 0;
wave_info_t *h = (wave_info_t *)userdata;
if (!s || length <= 0) {
- debug_error("write error. stream(%p), length(%d)", s, length);
+ debug_error("write error. stream(%p), length(%zu)", s, length);
return;
}
if ((bytes = sf_readf_short(h->sf, data, (sf_count_t)(data_length / frame_size))) > 0)
bytes *= (sf_count_t)frame_size;
- debug_log("=== %lld / %d ===", bytes, data_length);
+ debug_log("=== %zu / %zu ===", bytes, data_length);
if (bytes > 0)
pa_stream_write(s, data, (size_t)bytes, NULL, 0, PA_SEEK_RELATIVE);
/* If No more data, drain stream */
if (bytes < (sf_count_t)data_length) {
- debug_msg("EOS!!!!! %lld/%d", bytes, data_length);
+ debug_msg("EOS!!!!! %zu/%zu", bytes, data_length);
/* Handle loop */
if (_sound_is_rewind_needed(h)) {
info->channels = si.channels;
info->samplerate = si.samplerate;
- debug_msg("filename = %s, frames[%lld], samplerate[%d], channels[%d], format[%x], sections[%d], seekable[%d]",
+ debug_msg("filename = %s, frames[%zu], samplerate[%d], channels[%d], format[%x], sections[%d], seekable[%d]",
filename, si.frames, si.samplerate, si.channels, si.format, si.sections, si.seekable);
sf_close(sf);