On May 9, 2008, at 3:27 PM, Jens Alfke wrote:


On 9 May '08, at 12:10 PM, Jonathan Hendry wrote:

We have an experiment-running program which uses NSSound to play auditory stimuli. After upgrading a G5 to Leopard, we're seeing significant audio problems that we didn't see on Tiger. Sometimes, it's just a momentary dropout, but other times the audio just goes away for minutes at a time.

Does any other audio played by other apps on that machine have similar problems?

Hm. I'll have to check on that. It's pretty much only used for experiments.


Most of the audio glitches are accompanied by syslog messages from IOAudioStream, describing problems related to clipIfNecessary() Has anyone run into this? Is there a fix or workaround? Should we be using something lower-level than NSSound? Is there a better place to ask?

I'm not aware of any bugs specific to NSSound.

If you want to try another API, QTKit is probably the best one to try next. Load the audio file into a QTMovie object and then tell it to play. (You don't need any controller view.)

The low-level API that really does all the audio work is CoreAudio, but you don't want to go there for a simple task like this. Playing a sound file would end up as several pages of code. There are sample apps that demonstrate how to do it, but it's still probably overkill.

Probably. And it might not even fix the problem. On the other hand, we play the various sounds *a lot*, and frequently, so it might be worthwhile given their importance. If it fixed the problem. (It might also be useful to add the ability to send the audio to a specific output device, rather than just sending it to the default audio out.)

On the other hand, if you want to find expert advice on this problem, the coreaudio-api list is probably the right place to ask.

Thanks, I'll check there.

--

Jonathan Hendry

Howard Hughes Medical Institute
Maunsell Lab
Harvard Medical School


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to