iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 1.1

Posted: 2009-10-02

Build Requirements: iPhone SDK 3.1 and later

Runtime Requirements: iPhone OS 3.1 and later iPhone: iPhone OS 3.0

View Source Code:

Download Sample Code (“MusicCube.zip”, 510.7K)



Description

MusicCube demonstrates basic use of OpenGL ES, OpenAL, and Audio File Services on the iPhone for manipulating sound in a 3D environment. The four modes in the application illustrate how the sound volume and balance will change based on the position of the omnidirectional sound source and the position and rotation of the listener.

Document Revision History

Date Notes
2009-10-02Updated for iPhone OS 3.1. Use CADisplayLink as the preferred method for controlling animation timing, and fall back to NSTimer when running on a pre 3.1 device where CADisplayLink is not available.
2009-06-23Demonstrates basic use of OpenGL ES, OpenAL, and Audio File Services for manipulating sound in a 3D environment.
Did this document help you? Yes It's good, but... Not helpful...