brson / rust-sdl

SDL bindings for Rust
MIT License
179 stars 52 forks source link

Add support for the SDL mixer. #31

Closed pcwalton closed 11 years ago

pcwalton commented 11 years ago

This is the only way to get audio support in Rust at the moment; the low-level SDL_audio stuff wants to run a callback on a separate thread and that will segfault at the moment. brson's stuff should eventually fix this, but for now the SDL mixer must be used.

AngryLawyer commented 11 years ago

Heya @pcwalton sdl.rc is referencing pub mod audio, which wants an audio.rs, which isn't in your pull request. Is there supposed to be one? :)

pcwalton commented 11 years ago

@AngryLawyer Good catch, updated the commit.

pcwalton commented 11 years ago

And added mixer.rs.

AngryLawyer commented 11 years ago

Merged in and compiles! Thanks for your efforts, @pcwalton.