Skip to content

Commit 85d4fc1

Browse files
committed
Debug
1 parent 611421e commit 85d4fc1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/decoders/test_decoders.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,12 @@ def test_sample_rate_conversion(self, start_seconds, stop_seconds):
11571157
rtol=rtol,
11581158
)
11591159

1160+
def test_upsample(self):
1161+
asset = NASA_AUDIO_MP3
1162+
assert asset.sample_rate == 8000
1163+
decoder = AudioDecoder(asset.path, sample_rate=44100)
1164+
decoder.get_samples_played_in_range(start_seconds=0)
1165+
11601166
def test_s16_ffmpeg4_bug(self):
11611167
# s16 fails on FFmpeg4 but can be decoded on other versions.
11621168
# Debugging logs show that we're hitting:

0 commit comments

Comments
 (0)