Re: Playing Songs in Java
Have you tried the sound API? Been a while since I've used it but recall it being fairly straightforward to play sound.
Overview of the Sampled Package (The Java™ Tutorials > Sound)
Re: Playing Songs in Java
I threw together an applet that plays a song, you can view it and its source here: Little Bird, Fly Away
Re: Playing Songs in Java
copeg / Kevin, thanks for those examples. What I'm really looking for is something where I could implement play / pause buttons, a time position slider and other components a standard media player would feature. Does the sound API offer these features, or would they be relatively easy to implement myself? I'm really just getting into this want to write a basic media player.
Re: Playing Songs in Java
Quote:
Originally Posted by
obogobo
copeg / Kevin, thanks for those examples. What I'm really looking for is something where I could implement play / pause buttons, a time position slider and other components a standard media player would feature. Does the sound API offer these features, or would they be relatively easy to implement myself? I'm really just getting into this want to write a basic media player.
I'm not sure, what have you tried? I know the program I posted supports playing/pausing.
Re: Playing Songs in Java
To be honest I haven't tried much yet, just the JMF. I'll post my results with the Sound API soon (I hope) though