@@ -35,7 +35,7 @@ def test_wav(self, dtype, sample_rate, num_channels):
3535 )
3636 info = sox_io_backend .info (path )
3737 assert info .get_sample_rate () == sample_rate
38- assert info .get_num_samples () == sample_rate * duration
38+ assert info .get_num_frames () == sample_rate * duration
3939 assert info .get_num_channels () == num_channels
4040
4141 @parameterized .expand (list (itertools .product (
@@ -55,7 +55,7 @@ def test_wav_multiple_channels(self, dtype, sample_rate, num_channels):
5555 )
5656 info = sox_io_backend .info (path )
5757 assert info .get_sample_rate () == sample_rate
58- assert info .get_num_samples () == sample_rate * duration
58+ assert info .get_num_frames () == sample_rate * duration
5959 assert info .get_num_channels () == num_channels
6060
6161 @parameterized .expand (list (itertools .product (
@@ -74,7 +74,7 @@ def test_mp3(self, sample_rate, num_channels, bit_rate):
7474 info = sox_io_backend .info (path )
7575 assert info .get_sample_rate () == sample_rate
7676 # mp3 does not preserve the number of samples
77- # assert info.get_num_samples () == sample_rate * duration
77+ # assert info.get_num_frames () == sample_rate * duration
7878 assert info .get_num_channels () == num_channels
7979
8080 @parameterized .expand (list (itertools .product (
@@ -92,7 +92,7 @@ def test_flac(self, sample_rate, num_channels, compression_level):
9292 )
9393 info = sox_io_backend .info (path )
9494 assert info .get_sample_rate () == sample_rate
95- assert info .get_num_samples () == sample_rate * duration
95+ assert info .get_num_frames () == sample_rate * duration
9696 assert info .get_num_channels () == num_channels
9797
9898 @parameterized .expand (list (itertools .product (
@@ -110,5 +110,5 @@ def test_vorbis(self, sample_rate, num_channels, quality_level):
110110 )
111111 info = sox_io_backend .info (path )
112112 assert info .get_sample_rate () == sample_rate
113- assert info .get_num_samples () == sample_rate * duration
113+ assert info .get_num_frames () == sample_rate * duration
114114 assert info .get_num_channels () == num_channels
0 commit comments