diff --git a/ir.c b/ir.c index a2aedd1..922ea64 100644 --- a/ir.c +++ b/ir.c @@ -133,6 +133,7 @@ { "KEY_DOWN", 0x7689b04f, true }, { "KEY_HOME", 0x768922dd, false }, { "KEY_MEDIA_REPEAT", 0x768938c7, false }, + { "KEY_AGAIN", 0x768938c7, false }, // { "KEY_TITLE", 0x76897887, false }, // Now Playing // { "KEY_TITLE", 0x7689a25d, false }, // Now Playing // { "KEY_TEXT", 0x7689f807, false }, // Size diff --git a/output.c b/output.c index b37d127..99d4cc4 100644 --- a/output.c +++ b/output.c @@ -60,7 +60,7 @@ silence = false; // start when threshold met - if (output.state == OUTPUT_BUFFER && frames > output.threshold * output.next_sample_rate / 10 && frames > output.start_frames) { + if (output.state == OUTPUT_BUFFER && (frames * BYTES_PER_FRAME) > output.threshold * output.next_sample_rate / 10 && frames > output.start_frames) { output.state = OUTPUT_RUNNING; LOG_INFO("start buffer frames: %u", frames); wake_controller(); diff --git a/output_pulse.c b/output_pulse.c index 002e4fa..274380d 100644 --- a/output_pulse.c +++ b/output_pulse.c @@ -362,8 +362,9 @@ d->default_sink_name = strdup(l->name); if (!d->userdef_rates) { - d->rates[0] = l->sample_spec.rate; - } + d->rates[0] = PA_RATE_MAX; + } + output.default_sample_rate = l->sample_spec.rate; *d->sample_spec = l->sample_spec; } diff --git a/squeezelite.h b/squeezelite.h index d0b5f78..c86392c 100644 --- a/squeezelite.h +++ b/squeezelite.h @@ -26,7 +26,7 @@ #define MAJOR_VERSION "1.9" #define MINOR_VERSION "9" -#define MICRO_VERSION "1372" +#define MICRO_VERSION "1386" #if defined(CUSTOM_VERSION) #define VERSION "v" MAJOR_VERSION "." MINOR_VERSION "-" MICRO_VERSION STR(CUSTOM_VERSION)