Re: Asynchronous Audio Again
Re: Asynchronous Audio Again
- Subject: Re: Asynchronous Audio Again
- From: Markus Hitter <email@hidden>
- Date: Thu, 1 Apr 2004 10:00:10 +0200
Am 01.04.2004 um 03:37 schrieb Roger Eastman:
I was hoping that there would be a simple function similar to the old
SndPlay function in MacOS 9.x with a flag to turn on asynchronous
sound.
What's about NSSound? Should be a matter of one or two lines to get
your sound playing.
The NSSound class provides a simple interface for loading and playing
AIFF, WAV, and NeXT .snd files. NSSound supports 16-bit, mono and
stereo, 44.1KHz and 22.05KHz data.
Didn't test wether it allows to play asynchonously. If not, put it in
its own thread. One additional line of code.
For even more functionality, there is NSMovieView which basically
supports everything QuickTime does.
Cheers,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.