[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

play ogg file from Ruby (on windows

Chris Pine

3/13/2005 9:06:00 PM

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


4 Answers

Nikolai Weibull

3/13/2005 9:27:00 PM

0

* 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...

--
::: 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);}


Chris Pine

3/13/2005 9:46:00 PM

0

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


Premshree Pillai

3/14/2005 5:01:00 AM

0

On Mon, 14 Mar 2005 06:05:51 +0900, Chris Pine <cpine@hellotree.com> 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/...

>
> 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/...


Chris Pine

3/14/2005 3:13:00 PM

0

Premshree Pillai wrote:
> You could probably try ruby-xmms: http://pablotron.org/software/...

Yeah, but again, I'm looking for something on Windows.

:)

Chris