120 this->
fade.setOutput(output);
135 this->
fade.setOutput(output);
150 this->
fade.setOutput(output);
186 LOGE(
"Could not start audio source");
190 LOGE(
"Could not start metadata output");
194 LOGE(
"Could not start volume control");
209 LOGW(
"-> begin: no data found");
214 LOGW(
"-> begin: no stream selected");
260 LOGI(
"sample_rate: %d", (
int)
info.sample_rate);
261 LOGI(
"bits_per_sample: %d", (
int)
info.bits_per_sample);
262 LOGI(
"channels: %d", (
int)
info.channels);
289 LOGW(
"Could not open file: %s", path);
293 LOGI(
"Playing %s", path);
299 LOGI(
"%s has finished playing", path);
342 while (remaining > 0) {
343 int to_read = min(remaining, (
int)
sizeof(tmp));
398 LOGD(
"open selected stream");
421 fade.setFadeInActive(
true);
423 fade.setFadeOutActive(
true);
441 LOGE(
"setVolume value '%f' out of range (0.0 -1.0)",
volume);
471 size_t step =
copy();
489 LOGD(
"copy: %d -> 0", (
int)bytes);
494 result =
copier.copyBytes(bytes);
495 if (result > 0 ||
timeout == 0) {
514 LOGD(
"copy: %d -> %d", (
int)bytes, (
int)result);
562 if (
p_source->setMetadataCallback(callback)) {
564 LOGI(
"Using ICY Metadata");
633 void* reference) =
nullptr;
664 LOGD(
"stream is null");
677 fade.setFadeOutActive(
true);
680 fade.setFadeInActive(
true);