• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: At my wits end with NSSound!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: At my wits end with NSSound!


  • Subject: Re: At my wits end with NSSound!
  • From: Mike Brinkman <email@hidden>
  • Date: Tue, 10 Feb 2004 23:54:58 -0500

I found this tech note:

http://developer.apple.com/qa/qa2001/qa1335.html

This is for 10.3 though, I guess this is some kind of tacit acknowledgement
that NSSound was problematic prior to 10.3?


On 2/10/04 11:25 PM, "Tregaskis, Wade" <email@hidden>
wrote:

>> mySound = [[NSSound soundNamed:@"aSound"] retain];
>>
>> Then
>>
>> [mySound play];
>
> This is how I use sounds in my current project, and it seems to work fine.
> There's no audible delay nor significant CPU usage peak at the first play.
>
> People have complained about the first-play delays many times before, I know,
> but I was under the impression that it was a problem on all machines. Now
> that I'm using NSSound myself I don't see it.
>
> The sounds I'm playing are very small - I'll check exactly how-so when I get
> home tonight. I'm guessing that sounds above a certain size threshold (1k -
> 4k ?) might be triggering some kind of buffering mechanism - have you tried
> using tiny placeholder sounds for comparison?
>
> Has anyone tested if the delay they see is in any way variable, and if so
> whether it seems related to the size/complexity of the sound in question?
>
> Does anyone at Apple have an official stance or suggestion? I seem to recall
> this being a sour point previously.
>
> Wade Tregaskis
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: At my wits end with NSSound! (From: "Tregaskis, Wade" <email@hidden>)

  • Prev by Date: Re: At my wits end with NSSound!
  • Next by Date: Re: Making the correct button the default button?
  • Previous by thread: Re: At my wits end with NSSound!
  • Next by thread: Re: At my wits end with NSSound!
  • Index(es):
    • Date
    • Thread