Commit graph

955 commits

Author SHA1 Message Date
Petr Gladkikh
6eb27229a9 Track Cargo.lock
It is necessary to make tests and benches reproducible.
2024-11-29 23:06:14 +04:00
Petr Gladkikh
43742f6b5f Merge remote-tracking branch 'rust-audio/master' into test-fixes 2024-11-29 22:26:39 +04:00
Petr Gladkikh
31035599a3 Fix rustdoc 2024-11-29 21:39:13 +04:00
Petr Gladkikh
d9d7606560 Remove explicit overflow check in sample interpolation 2024-11-29 20:21:21 +04:00
dvdsk
de0ffdc905
removes symphonia duration unit tests
In principle we do not have unit tests. See contributor guidlines for
the reasoning.
2024-11-27 18:57:40 +01:00
David Kleingeld
8f45194f89
Merge pull request #645 from Methapon2001/master
Fix wrong total duration caused by divided by zero conversion
2024-11-27 18:56:36 +01:00
Methapon2001
4ebb2ab8f2
Update CHANGELOG.md 2024-11-27 07:13:00 +07:00
Petr Gladkikh
b7dbe3f33b Merge remote-tracking branch 'rust-audio/master' into test-fixes 2024-11-26 16:24:51 +04:00
Methapon2001
d18070d2f7
Update test to use value from Time instead 2024-11-24 21:13:44 +07:00
Methapon2001
94a8197273
Add time to duration tests 2024-11-24 21:00:17 +07:00
Methapon2001
77896cc498
Fix wrong total duration cause by divided by zero 2024-11-24 20:41:50 +07:00
dvdsk
bc8d1c7e05
remove unneeded pub from OutputStreamConfig 2024-11-24 12:32:00 +01:00
David Kleingeld
c1d22302c7
Merge pull request #641 from PetrGlad/init-revamp
Use builder to init output stream
2024-11-24 12:29:37 +01:00
Petr Gladkikh
435222ad23 Merge remote-tracking branch 'rust-audio/master' into init-revamp 2024-11-22 21:25:31 +04:00
Petr Gladkikh
565b02638d
Merge branch 'RustAudio:master' into test-fixes 2024-11-22 18:19:06 +01:00
Petr Gladkikh
bf60185d4b Exclude examples from experimental build tests 2024-11-22 20:58:01 +04:00
Petr Gladkikh
de53b87a06 Fix AGC example compilation
`experimental` flag removes some API, just keep the example
minimally functional in that case.
2024-11-21 23:01:01 +04:00
Petr Gladkikh
808d51b937 Revert changes in AGC example 2024-11-21 22:46:44 +04:00
Petr Gladkikh
5972eebc3a Update CHANGELOG.md 2024-11-21 22:33:38 +04:00
Petr Gladkikh
c23ec2c76d Update documentation 2024-11-21 22:31:43 +04:00
Petr Gladkikh
d1d5726ce0 Rename try_open_stream and try_default_stream 2024-11-21 21:43:24 +04:00
dvdsk
ff45ff80f6
adds resampler benchmark (implemented through UniformSource) 2024-11-21 18:01:21 +01:00
Petr Gladkikh
678df037cb Custom output stream config example 2024-11-21 21:00:57 +04:00
Petr Gladkikh
95060b1909 Stream initialization fix 2024-11-21 20:51:11 +04:00
Petr Gladkikh
0ba60217ff Hide OutputStreamConfig struct 2024-11-21 19:58:06 +04:00
Petr Gladkikh
1182681256 Clarify CI documentation test command 2024-11-21 19:42:36 +04:00
Petr Gladkikh
4101ae9087 Remove unwrap and expect from example code 2024-11-20 00:58:05 +04:00
Petr Gladkikh
7b70230a60 Remove redundant code from AGC example 2024-11-19 17:49:10 +04:00
Petr Gladkikh
77c50cd9ce Clarify API documentation 2024-11-17 18:54:13 +04:00
Petr Gladkikh
6f6385b0d5 Add documentation for output stream public exports 2024-11-16 23:19:18 +04:00
Petr Gladkikh
1af733ee86 Cleanup: fix lint warnings 2024-11-15 22:41:03 +04:00
Petr Gladkikh
6a6e94c88e Rename dynamic_mixer.rs 2024-11-15 21:08:54 +04:00
Petr Gladkikh
689670d66c UPdate documentation
Add an example for rodio::play()
Remove experimental API from rustdocs.
2024-11-15 19:57:36 +04:00
Petr Gladkikh
b6b000b61f Add test
Restoring len() test, it is actually useful to check
`SampleRateConverter::size_hint()` implementation.
Although its implementation is not precise (see TODOs).
2024-11-15 19:21:04 +04:00
Petr Gladkikh
b720273847 Revert extra changes for merge request 2024-11-15 03:11:48 +04:00
Petr Gladkikh
6734d0178b Cleanup
Make assert conditions more uniform.
2024-11-15 00:33:26 +04:00
Petr Gladkikh
de29cb3925 Reduce number of assertions 2024-11-15 00:23:30 +04:00
Petr Gladkikh
ebc673e315 Cleanup, remove unnecessay imports 2024-11-15 00:19:43 +04:00
Petr Gladkikh
e983383a7f Remove experimental features from documentation 2024-11-14 23:36:43 +04:00
Petr Gladkikh
af92566321 Cleanup
Code reformatted.
Removed experimental code.
2024-11-14 23:03:59 +04:00
Petr Gladkikh
179d41a53e Reformat code 2024-11-14 03:08:50 +04:00
Petr Gladkikh
cd7964e2a5 Better variable names 2024-11-14 02:30:04 +04:00
Petr Gladkikh
69f9e11aaa Test Sample::lerp according to the API documentation 2024-11-13 21:02:16 +04:00
Petr Gladkikh
b40caca6a0 Correct Sample::lerp documentation 2024-11-13 18:36:11 +04:00
Petr Gladkikh
ee90203e70 Correct linear interpolation
Overflows chould have distort sound without triggering any errors.
2024-11-13 17:55:36 +04:00
Petr Gladkikh
197390fc40 Update quickcheck, update tests 2024-11-13 03:53:29 +04:00
Petr Gladkikh
574b809549 Upgrade quickcheck, make tests more reliable 2024-11-13 00:10:48 +04:00
Petr Gladkikh
d2a5085404 Test experimental features and docs in CI
`cargo test --all-targets` excludes doc tests.

Experimental features are sometimes mutually exclusive with
the stable code.
2024-11-12 23:42:50 +04:00
Petr Gladkikh
6071f147ed Update test 2024-11-12 23:40:57 +04:00
Petr Gladkikh
5be291d364 Fix doc tests, update documentation 2024-11-12 23:40:47 +04:00