Commit graph

700 commits

Author SHA1 Message Date
Hamir Mahal
c04934ee0d
fix: formatting in src/ and tests/ 2024-07-04 00:09:44 -07:00
Hamir Mahal
9b2da72bd0
style: simplify string formatting 2024-07-04 00:08:35 -07:00
dvdsk
27f2b42406
release 0.19 (adds trackposition) 2024-06-29 23:13:46 +02:00
dvdsk
f518a7d334
cargo fmt 2024-06-18 01:37:29 +02:00
dvdsk
cbfd0c59ed
changes get_pos return type from f64 to Duration 2024-06-18 01:37:04 +02:00
dvdsk
637aec44fe
adds more details to track_position/get_pos docs 2024-06-18 01:36:48 +02:00
dvdsk
edbe3f5b9e
update changelog for trackposition 2024-06-18 01:09:16 +02:00
David Kleingeld
fd9747d198
Merge pull request #585 from Gusted/add-position
Add TrackPosition to Source
2024-06-17 18:29:13 +02:00
Gusted
16a1440d04
Better naming 2024-06-17 18:24:53 +02:00
dvdsk
297bd99bc1
fixes new clippy lints 2024-06-17 13:22:37 +02:00
Gusted
80277e03f6
Revert Arc stuff 2024-06-17 13:00:26 +02:00
Gusted
ca43ad0885
Refactoring 2024-06-16 18:07:36 +02:00
Gusted
0e6d5a1da2
Handle variable channels and sample rate 2024-06-11 01:47:03 +02:00
Gusted
e1108abe71
Add TrackPosition to Source
This adds a new TrackPosition trait which counts the amount of times
`next()` is called (where it returns `Some`) and provide a function to
get the position, which is a simple calculation.

This is added to the Sink struct by default and the accuracy of this depends on
the interval of `periodic_access`.

I wasn't able to add testing to the sink counter part, because I
wanted to also test `try_seek`, but it seems like I would need to have
some threading code to call `next` on sink in another thread, which
didn't look that good and resulted in a flaky test so only a 'unit test'
in ``position.rs`.

Resolves #457
Closes #510
2024-06-09 23:17:45 +02:00
dvdsk
ae9eaedc22
add mp4a playback fix to changelogs unreleased 2024-06-06 23:54:12 +02:00
dvdsk
db32ea6cf7
make mp4a test conditional on the right rodio features being enabled 2024-06-06 23:49:20 +02:00
dvdsk
a3ce66009f
remove features from testing from symphonia dep 2024-06-06 23:41:09 +02:00
David Kleingeld
23fe481fcb
Merge pull request #582 from apolunar/fix_m4a_mp4a_decode_seek
Fix m4a and mp4a playback
2024-06-06 23:40:04 +02:00
apolunar
eac5a32f3d improved error handling pt 2 2024-06-06 16:29:36 -05:00
apolunar
5f1b057b14 improved error handling 2024-06-05 09:37:28 -05:00
apolunar
3bc964737c fix formatting, error handling, and remove uneccesary features 2024-06-02 18:27:23 -05:00
apolunar
6bbd95ed83 fix clippy complaint that the struct is overdeclared 2024-06-01 21:00:10 -05:00
apolunar
d08d9e71a6 re-disable symphonia-isomp4 test due to (upstream?) failure 2024-06-01 20:55:45 -05:00
apolunar
b712559418 possibly fixed m4a and mp4a playback 2024-06-01 13:44:53 -05:00
David Kleingeld
ee73f6d97d
Merge pull request #579 from RustAudio/fix_hang_seek_on_empty_queue
Fix hang seek on empty queue
2024-05-23 13:33:33 +02:00
dvdsk
3d61bddd03
fmt 2024-05-23 13:27:03 +02:00
dvdsk
d6e64dc80c
disables known broken decoder in test (see #577) 2024-05-23 13:18:29 +02:00
dvdsk
7cd55a1bb3
increment version (patch) and update changelog 2024-05-23 13:15:36 +02:00
dvdsk
66cbef992b
Merge branch 'master' into fix_hang_seek_on_empty_queue 2024-05-23 13:10:49 +02:00
dvdsk
7473837814
add test checking for #578 2024-05-23 13:10:37 +02:00
dvdsk
749a4845a2
check if any sound is playing before waiting for seek result 2024-05-23 13:07:09 +02:00
dvdsk
11221a8609
fixes typo in test 2024-05-05 10:46:02 +02:00
dvdsk
97cff09fe2
Fixes two clippy lint issues
Clippy updated and has a new lint regarding clone efficiency. This was
not yet a thing when the previous version was prepared.
2024-05-05 10:39:56 +02:00
dvdsk
50f0177b74
Merge branch 'master' of github.com:RustAudio/rodio 2024-05-05 10:29:28 +02:00
dvdsk
2eb6246884
release 0.18.0 2024-05-05 10:28:50 +02:00
David Kleingeld
149443717f
Merge pull request #575 from senlizishi/document
Add comment about Sink and OutputStream
2024-04-22 11:00:33 +02:00
weixubin
0b1bdb9bfa fix 2024-04-22 16:56:59 +08:00
weixubin
934b1c0525 Add comment about Sink and OutputStream 2024-04-22 16:20:14 +08:00
David Kleingeld
a618afccf9
Merge pull request #574 from RustAudio/fix_cpal_version
The cpal version requirement is too low causing #573
2024-04-21 17:26:01 +02:00
dvdsk
1d15760f3e
The cpal version requirement is too low causing #573
Specifically cpal changed `SupportedStreamConfigRange` and made it Copy.
As that relaxes the requirements on it its a non breaking change. Rodio was
then refactored to remove the now no longer needed `.clone()` in 77c5c54. That
clone however is still needed for Rodio users with a lower cpal version. This
commit fixes that by requiring a higher cpal version.
2024-04-21 12:52:29 +02:00
David Kleingeld
a9045662b2
Merge pull request #572 from hamirmahal/refactor/replace-archived-action-with-similar-functionality
refactor: replace archived action
2024-04-20 10:36:26 +02:00
Hamir Mahal
799ed85f87
refactor: replace archived action 2024-04-20 00:57:02 -07:00
David Kleingeld
e51594892a
Merge pull request #570 from hamirmahal/fix/usage-of-deprecated-version-of-nodejs
fix: usage of `deprecated` version of `Node.js`
2024-04-16 21:35:29 +02:00
Hamir Mahal
e036e43fe5
fix: usage of deprecated version of Node.js 2024-04-16 11:06:13 -07:00
David Kleingeld
cefb123311
Merge pull request #568 from YXL76/patch-1
fix: no variant found for `source::SeekError`
2024-04-13 20:09:24 +02:00
兰陈昕
85c35c317c
Update mod.rs 2024-04-13 23:15:41 +08:00
dvdsk
818f557466
docs(changelog) adds missing entry to changelog 2024-04-06 13:06:31 +02:00
David Kleingeld
d103517b19
Merge pull request #513 from dvdsk/seek_runtime_err
Implements Seek
2024-04-06 12:34:48 +02:00
dvdsk
1ed1197cfd
style, removes a needless clone()
Was needed before a cargo update call. Update to cpal made the type
copy though.
2024-04-06 12:14:08 +02:00
dvdsk
bbc8f00a34
update changelog 2024-04-06 12:11:19 +02:00