playing wave file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • webstar

    playing wave file

    hi,
    could you please tell me how to play a small wave file if a button is
    pressed.
    or if there is another format that is easer then use that instead of wave.
    thanks
    matt


  • Karthik A.

    #2
    Re: playing wave file

    Hi,
    Wave files can be played in many ways ... but the easiest way would be
    to use
    something known as Java Media Framework (JMF) .. this is available for
    download from java.sun.com ... along with some sample code that plays
    more than a wave file .. it can play mpeg video ..mp3 ...midi ... etc
    etc.. check them out.

    Regards
    Karthik


    "webstar" <triplejboy@hot mail.com> wrote in message news:<Nb1Ra.598 6$wU5.323@news-server.bigpond. net.au>...[color=blue]
    > hi,
    > could you please tell me how to play a small wave file if a button is
    > pressed.
    > or if there is another format that is easer then use that instead of wave.
    > thanks
    > matt[/color]

    Comment

    Working...