-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use FileIO mechanism for IO #30
Comments
I just took a look at |
To be fair, I do not think that is My point is that, ideally, there should be an I am willing to contribute, if necessary. |
If you have a concrete suggestion on how you'd like to see I'd like to avoid a breaking change where the support for |
Depending on your plans for the package, there are some options that come to my mind. You can surely provide a better insight on the details of the package as I didn’t look much into it. The first thing I would do is to rely on FileIO, dropping the direct dependency on WAV.jl. If the user needs it, can always add it to its local environment. Then we have some options to make
|
Another possibility that is viable (and probably not orthogonal to the other ones) (just look for reference at |
Rather than add
This is my preferred choice, perhaps with a friendly error message telling the user what needs to get done if the user isn't using |
I found that the dependency on WAV.jl leads to inconsistent behaviour when using this package with others (specifically in the JuliaAudio ecosystem).
I think it should be better to rely on FileIO without depending on WAV.jl directly. The user should be able to select the backend.
I don’t know if this is possible without much effort (the underlying representation can change vastly). Another way around is to drop support for IO, giving the user good explanation on how to load a signal from an audio file.
The problem is that if one has both WAV.jl and LibSndFile.jl in the same manifest, FileIO would prefer WAV.jl anyway.
The text was updated successfully, but these errors were encountered: