FS#13676: Fix sample rate options not being voiced correctly.

Regression introduced in 79b64a3fc7, 2023-09-01

Change-Id: I07a8529042e0ae3b563f04a4ffe211c23b830281
This commit is contained in:
Solomon Peachy 2025-10-24 09:52:51 -04:00
parent 3b7dafb117
commit b4a276e19e

View file

@ -734,10 +734,12 @@ static const char* formatter_freq_unit_0_is_auto(char *buffer, size_t buffer_siz
static int32_t getlang_freq_unit_0_is_auto(int value, int unit) static int32_t getlang_freq_unit_0_is_auto(int value, int unit)
{ {
if (value == 0) if (value == 0) {
return LANG_AUTO; return LANG_AUTO;
else } else {
return talk_value_decimal(value, unit, 3, false); talk_value_decimal(value, unit, 3, false);
return -1;
}
} }
static void playback_frequency_callback(int sample_rate_hz) static void playback_frequency_callback(int sample_rate_hz)