Re-enabled closecall even if it's still not working well

RDS PSN works again but update issue (UI ?)
Moved CTCSS stuff to dedicated file
This commit is contained in:
furrtek 2016-12-08 16:13:27 +01:00
parent 1db138c27a
commit 28ea2179f4
24 changed files with 258 additions and 229 deletions

View file

@ -74,8 +74,7 @@ uint32_t WAVFileReader::ms_duration() {
}
int WAVFileReader::seek_mss(const uint16_t minutes, const uint8_t seconds, const uint32_t samples) {
auto result = file.seek(data_start + ((((minutes * 60) + seconds) * sample_rate_) + samples) * bytes_per_sample);
const auto result = file.seek(data_start + ((((minutes * 60) + seconds) * sample_rate_) + samples) * bytes_per_sample);
if (result.is_error())
return 0;