Need help embedding .au into my java application!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Need help embedding .au into my java application!

  1. #1
    Justin Guest

    Need help embedding .au into my java application!


    If anyone can help me figure out how to embed sound into my java application
    I would be very greatful.
    I need a sound to play when a new window opens up. So when they click on
    "About" for example. The about
    screen will come up as usual telling about the program. But when this window
    pops up I would like it to
    play a sound. Also I am trying to figure how to get sound files using sun
    format .au to be looped within
    my java based application.

    I have been buidling this application using the following below:

    Microsoft Visual J++ 6.0

    If any of you can help me please send me an email, thanks. =)



  2. #2
    Tom Duffy Guest

    Re: Need help embedding .au into my java application!


    Hello Justin:

    Check out the AudioClip interface. It includes play() and loop()methods
    that can be triggered by any event - like displaying the About box.

    Tom Duffy

    "Justin" <azid-mixes-studios@juno.com> wrote:
    >
    >If anyone can help me figure out how to embed sound into my java application
    >I would be very greatful.
    >I need a sound to play when a new window opens up. So when they click on
    >"About" for example. The about
    >screen will come up as usual telling about the program. But when this window
    >pops up I would like it to
    >play a sound. Also I am trying to figure how to get sound files using sun
    >format .au to be looped within
    >my java based application.
    >
    >I have been buidling this application using the following below:
    >
    >Microsoft Visual J++ 6.0
    >
    >If any of you can help me please send me an email, thanks. =)
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center