diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-12-20 09:31:02 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-20 09:31:02 -0800 |
| commit | f08c7d470d5bbcdfc51fa4c24257d16482df15b5 (patch) | |
| tree | d84b939c9d155aeb2c990db42161f437c3bfb89f | |
| parent | 773e1316d2d834d25a506768fe68197f1c71792a (diff) | |
| parent | 51af8aadb7d9b1a22fbff9bbb978878fc959b5a8 (diff) | |
Merge pull request #2410 from jepler/nrf-extended-samplerate
nrf: PWMAudioOut: 62500Hz limitation is not needed
| -rw-r--r-- | ports/nrf/common-hal/audiopwmio/PWMAudioOut.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ports/nrf/common-hal/audiopwmio/PWMAudioOut.c b/ports/nrf/common-hal/audiopwmio/PWMAudioOut.c index d9226628f..cdb57bbe1 100644 --- a/ports/nrf/common-hal/audiopwmio/PWMAudioOut.c +++ b/ports/nrf/common-hal/audiopwmio/PWMAudioOut.c @@ -225,10 +225,6 @@ void common_hal_audiopwmio_pwmaudioout_play(audiopwmio_pwmaudioout_obj_t* self, self->loop = loop; uint32_t sample_rate = audiosample_sample_rate(sample); - uint32_t max_sample_rate = 62500; - if (sample_rate > max_sample_rate) { - mp_raise_ValueError_varg(translate("Sample rate too high. It must be less than %d"), max_sample_rate); - } self->bytes_per_sample = audiosample_bits_per_sample(sample) / 8; uint32_t max_buffer_length; |
