Version: 1.2

Posted: 2006-05-11

Build Requirements: XCode 2.2, or Java 2 SDK for Windows, and QuickTime 7

Runtime Requirements: Java 1.5 and QuickTime 7, or later, recommended

View Source Code:

Download Sample (“PlaySound.zip”, 106.8K)
Download Sample (“PlaySound.dmg”, 172.2K)



Description

The code displays a frame with two AWT buttons in a Java Frame. One button will play a sound file and the other will play a midi file. This is done without loading the files into a QTComponent.

Document Revision History

Date Notes
2006-05-11Support for XCode 2. Modified project layout for platform independent distribution and compilation.
2003-01-14Shows how to play a sound or midi file using AWT rather than a QTComponent.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.