play ogg file from Ruby (on windows)

Discussion in 'Ruby' started by Chris Pine, Mar 13, 2005.

  1. Chris Pine

    Chris Pine Guest

    Hello,

    Just wondering if anyone has managed to play ogg files from Ruby? I'm
    not looking for much, just the ability to do something like this:

    puts 'Playing a song...'
    ogg_play 'song.ogg'
    puts 'Done playing that song.'

    So ogg_play would just play the song, and return when the song is done.

    Anyone done anything like this?

    Chris
    Chris Pine, Mar 13, 2005
    #1
    1. Advertising

  2. * Chris Pine (Mar 13, 2005 22:10):
    > So ogg_play would just play the song, and return when the song is
    > done.


    Search for “ruby-vorbisfile†and “ruby-audiofile†on RAA [1],
    nikolai

    [1] http://raa.ruby-lang.org/

    --
    ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
    ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
    ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
    main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
    Nikolai Weibull, Mar 13, 2005
    #2
    1. Advertising

  3. Chris Pine

    Chris Pine Guest

    Nikolai Weibull wrote:
    > Search for “ruby-vorbisfile†and “ruby-audiofile†on RAA [1],


    Sorry, but I meant to say "on Windows". (Well, I did say that in the
    subject, but forgot to say it in the message. :)

    Frow what I can tell, those will only work on machines with /dev/dsp, right?

    Thanks, though,

    Chris
    Chris Pine, Mar 13, 2005
    #3
  4. On Mon, 14 Mar 2005 06:05:51 +0900, Chris Pine <> wrote:
    > Hello,
    >
    > Just wondering if anyone has managed to play ogg files from Ruby? I'm
    > not looking for much, just the ability to do something like this:
    >
    > puts 'Playing a song...'
    > ogg_play 'song.ogg'
    > puts 'Done playing that song.'


    You could probably try ruby-xmms: http://pablotron.org/software/xmms-ruby/

    >
    > So ogg_play would just play the song, and return when the song is done.
    >
    > Anyone done anything like this?
    >
    > Chris
    >
    >



    --
    Premshree Pillai
    http://www.livejournal.com/users/premshree/
    Premshree Pillai, Mar 14, 2005
    #4
  5. Chris Pine

    Chris Pine Guest

    Chris Pine, Mar 14, 2005
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    544
  2. Devyn Collier Johnson

    Play Ogg Files

    Devyn Collier Johnson, Jul 19, 2013, in forum: Python
    Replies:
    0
    Views:
    111
    Devyn Collier Johnson
    Jul 19, 2013
  3. Devyn Collier Johnson

    Play Ogg Files

    Devyn Collier Johnson, Jul 20, 2013, in forum: Python
    Replies:
    0
    Views:
    123
    Devyn Collier Johnson
    Jul 20, 2013
  4. Stefan Behnel

    Re: Play Ogg Files

    Stefan Behnel, Jul 20, 2013, in forum: Python
    Replies:
    0
    Views:
    137
    Stefan Behnel
    Jul 20, 2013
  5. Devyn Collier Johnson

    Re: Play Ogg Files

    Devyn Collier Johnson, Jul 20, 2013, in forum: Python
    Replies:
    1
    Views:
    131
    alex23
    Jul 23, 2013
Loading...

Share This Page