Bug #1844

crash on attempting to play audio at a "low" sampling rate

Added by Chris Cannam over 5 years ago.

Status:NewStart date:2018-10-09
Priority:NormalDue date:
Assignee:Chris Cannam% Done:

0%

Category:-
Target version:-

Description

  • Load an audio file sampled at 128Hz
  • Hit Play

SV crashes with an uncaught exception:

Resampler::process: libsamplerate error: SRC ratio outside [1/256, 256] range.
terminate called after throwing an instance of 'breakfastquay::Resampler::Exception'

With a rate this low, it's not unreasonable to refuse or fail to play - but it should do so explicitly and not just crash.

Also available in: Atom PDF