Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Add "alut" to this package? #24

Closed
sunnystormy opened this issue May 27, 2016 · 6 comments
Closed

Add "alut" to this package? #24

sunnystormy opened this issue May 27, 2016 · 6 comments

Comments

@sunnystormy
Copy link

sunnystormy commented May 27, 2016

ALUT adds some helper methods for initializing audio files and creating/binding a buffer. Is there a way you can get that added inside of this package so users don't have to resort to the boilerplate "alc" conventions?

@jpernst
Copy link
Owner

jpernst commented May 27, 2016

I've never used ALUT before, but from what I'm seeing in the API documentation, it could just be reimplemented in rust rather straightforwardly using crates like hound, vorbisfile, opusfile-rs, etc. I'd rather not introduce another dependency on a native lib, but would be open to cargo features that optionally enable some convenience functions for various formats. My efforts are currently focused elsewhere, but I'd be happy to review any PRs if someone is interested in contributing those features.

@sunnystormy
Copy link
Author

Well, the advantage of using ALUT has to do with making it easier for loading and playing ".WAV" files. Is there a way you could provide a .WAV loading example inside of the tests? I think that would help users jump-start their usage of this library, as well as give them ideas about incorporating other ones like vorbis-rs (inside of their own projects).

@sunnystormy
Copy link
Author

sunnystormy commented Sep 26, 2016

Bump

I'm actually in the process of creating a .WAV loader from scratch based upon this tutorial. Some of the data types are different (because Rust handles chars differently than C), but if you have any pointers, I'd appreciate your help!

@jpernst
Copy link
Owner

jpernst commented Sep 26, 2016

The WAV format isn't too bad. The main tip I have is to just make sure you handle the potential that the RIFF chunks can be in any order. The source for hound is also probably a good reference: https://github.com/ruuda/hound

@sunnystormy
Copy link
Author

Huh! This library makes what I'm trying to do much easier. Thank you for making me aware of it! : )

@sunnystormy
Copy link
Author

@jpernst You can go ahead and close this ticket. I've figured out how to play .WAV files using Hound and openal-rs. :)

@jpernst jpernst closed this as completed Sep 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants