Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple example of playing a sound?



Hello,

I need to play a simple sound when some events happen in my app. In Java I see there is the beep function but this is too simple. On the other hand, the sound API seems over complicated as I only need to play two or three simple sounds.

1. Is there a simple way to just say something like "(new Sound("soundFile.??")).play()"

2. Where can I find sound files for the kind of sounds you would hear in sci-fi movie when a screen is filling up with data "smallish beeps", "rings...", etc... It is too be used as user feedback when either an action succeeded or failed or when the UI updates from behind the scenes without user interraction.

Thanks a lot,

Alex
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.