(Play, loop, and stop a sound clip) Write a
■ Get an audio file from the class directory using AudioClip.
■ Place three buttons labeled Play, Loop. and Stop, as shown in Figure 16.46a.
■ If you click the Play button, the audio file is played once. If you click the Loop button, the audio file keeps playing repeatedly. If you click the Stop button, the playing stops.
Want to see the full answer?
Check out a sample textbook solutionChapter 16 Solutions
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Additional Engineering Textbook Solutions
C Programming Language
Starting out with Visual C# (4th Edition)
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
Starting Out with Python (4th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning