• 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: Best way to play a legacy "SystemSound" file in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to play a legacy "SystemSound" file in Cocoa?


  • Subject: Re: Best way to play a legacy "SystemSound" file in Cocoa?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sat, 21 Jun 2003 17:39:26 +0200

I had encouter the same probleme with MP3 file. The best way is to consider
it as a movie an instantiate a NSMovie. Then you can play it in a
NSMovieView. You can play it without add the movieView to a window. Just
instanciate programatically a NSMovieView, and send a play message to it.
That works with any file QuickTime can read, so it need to work with
SystemSound file.


Le 21/06/03 5:57, + email@hidden ;
<email@hidden> a icrit :

> Date: Thu, 19 Jun 2003 23:47:13 -0400
> Subject: Best way to play a legacy "SystemSound" file in Cocoa?
> From: "=?ISO-8859-1?Q?Jean-Olivier_Lanct=F4t-D.?="
> <email@hidden>
> To: email@hidden
>
> Hi guys,
>
> I think Mac OS X and Cocoa really suck when it comes to sounds.
>
> NSSound does not seem to support old file labeled as "System Sound"
> files by the Finder.
>
> So I decided to convert my sound to AIFF, so that it could be read by
> NSSound. No luck with my sounds, even with the highest AIFF quality
> settings, I lose the sounds' quality to the point where you can't even
> tell the two sounds are supposed to sound the same.
>
> Now I've searched the archives and I noticed some users have the same
> problems.. I just want to know what's the "status" on this?
>
> I've been given old snd files that used to work in a RB app (BTW
> RealBasic can read them) and I can't use them in my Cocoa app, which is
> basically a "better OS X port" of that OS 9 app.
>
> My guess is that if the Finder can read it just fine, I guess I can do
> so too in my app. I also guess it has something to do with calling
> QuickTIme. Can anyone show me? :)
>
> Also, my favourite Sound application, "SoundApp PPC" does not work on
> OS X, too bad I've deleted classic.
> *sigh*
>
> --Jean-Olivier Lancttt
_______________________________________________
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.

  • Prev by Date: Re: TrollTech releases QT for Mac under GPL
  • Next by Date: NSTextField and key-events
  • Previous by thread: Re: Best way to play a legacy "SystemSound" file in Cocoa?
  • Next by thread: NSTask help
  • Index(es):
    • Date
    • Thread