Closed uklotzde closed 3 years ago
That should be possible.
So i finally got around implementing this. If this fits your needs I would publish a new release.
Great to hear, thank you! Will try this soon and report back.
I suggest to return std::time::Duration instead of f64 seconds.
Removed mp4 in favor of mp4ameta: https://gitlab.com/uklotzde/aoide-rs/-/commit/3f326ae9a2fad0cabf2c987c9f94a21e4da1597a
Another idea I just discovered in an embedded crate: How about using Hz44100
instead of F44100
for the sample rate frequencies? This would be explicit, readable, and concise.
Using explicit std::time::Duration
and Hz
definitely sounds good. I just fixed a bug with parsing descriptors and now all songs in my library are successfully parsed, however I still need to clean things up. After that and your suggested changes we should be good to go.
I just published version 0.9.0
.
Seeing the usage in aoide-rs I added a hz()
method to the SampleRate
enum.
For accessing the following read-only properties I need to read the file twice using the mp4 crate:
Would it be possible to provide them for consistency and completeness?