> On Nov 17, 2016, at 14:20, Micky Scandal <mickyscandal / gmail.com> wrote:
> 
> I need some help working with sdl. At this point all I'm trying to do is get ruby to play an audio file using the rubysdl gem (I really can't find much out there on this gem except for the documentation). this is my code as of right now:
>   #!/usr/bin/ruby
> 
> require 'sdl'
> 
> SDL.init(SDL::INIT_AUDIO)
> sound = SDL::Mixer.open(44100, SDL::Mixer::DEFAULT_FORMAT, 2, 1024)
> sound.load("rebel-theme.wav")

I don't have any working examples for this, but my graphics gem has sdl-mixer already hooked up. You can either pilfer from it or feel free to switch to it. I'm actively working on it (not the audio part, yet, but I'm totally happy to take a PR with an example using it).



Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>