88use simple_src :: {sinc, Convert };
99
1010let samples = vec! [1.0 , 2.0 , 3.0 , 4.0 ];
11- let manager = sinc :: Manager :: new (2.0 , 48.0 , 8 , 0.1 );
11+ let manager = sinc :: Manager :: new (2.0 , 48.0 , 8 , 0.1 ). unwrap () ;
1212let mut converter = manager . converter ();
1313for s in converter . process (samples . into_iter ()) {
1414 println! (" {s}" );
@@ -43,9 +43,11 @@ For multi-channel example see [examples/two_channels.rs](/examples/two_channels.
4343
4444The * linear* Converter is not recommended unless performance is really important.
4545
46- Use [ plots.py] ( /plots.py ) to show the result of tests . It need * numpy* , * scipy*
46+ Use [ plots.py] ( /plots.py ) to show the results of conversion . It needs * numpy* , * scipy*
4747and * matplotlib* .
4848
49+ Here is an example showing the results of a downsampling 96kHz:
50+
4951```
5052$ cargo test -r --test testwav -- --ignored --exact --show-output generate
5153$ cargo test -r --test sinc -- --ignored --exact --show-output ta120_2_96k_down
@@ -59,6 +61,6 @@ $ python
5961>>> plots.impulse('impulse_96k_44k_s_a120_2.wav', True)
6062```
6163
62- See [ tests] ( /tests/ ) for more details.
64+ See code in [ tests] ( /tests/ ) for more details.
6365
6466Reference < https://ccrma.stanford.edu/~jos/resample/resample.html >
0 commit comments