Mac OS X Reference Library Apple Developer Connection spyglass button

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 Code (“PlaySound.zip”, 106.8K)



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 It's good, but... Not helpful...