jstrait / wavefile

A Ruby gem for reading and writing sound files in Wave format (*.wav)
https://wavefilegem.com
MIT License
208 stars 24 forks source link

Duration does not override equality #23

Closed chrylis closed 7 years ago

chrylis commented 7 years ago

Two Durations that specify the exact same duration do not evaluate as equal.

jstrait commented 7 years ago

Thanks for the heads up! It makes sense that two durations constructed from the same sample frame count and sample rate should be regarded as equal.

Out of curiosity, has this caused an issue for you in a particular use case?

jstrait commented 7 years ago

This is now fixed in v0.8.0, which was released today, so closing this issue. Thanks for suggesting this improvement!