[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSSound
From: |
David Ayers |
Subject: |
Re: NSSound |
Date: |
Fri, 05 Jun 2009 08:15:43 +0200 |
Am Donnerstag, den 04.06.2009, 07:45 -0500 schrieb Stefan Bidigaray:
> I think I was unclear on how I was storing the data...
>
> On Thu, Jun 4, 2009 at 2:04 AM, Fred Kiefer <address@hidden> wrote:
> I think that in almost all cases using NSData is better then
> storing a
> pointer. That way you only have to worry once (when creating
> the NSData
> object) about who is responsible for cleaning up afterwards.
>
> I'll go ahead and use a NSData object to store the data, but to make
> my life easier on the playback side I only store raw 16-bit PCM data
> into the object. This allows me to not have to convert it later, and
> is the native format for most (if not all) sound cards.
Please remember that NSSound can also be used on headless servers
(without sound cards) to merely process/stream/?? NSSound objects. So
please try convert lazily when you actually need it.
Cheers,
David
--
David Ayers Fellow of the Free Software Foundation Europe
http://www.fsfe.org http://fellowship.fsfe.org
- Re: NSSound, (continued)
- Re: NSSound, Xavier Glattard, 2009/06/03
- Re: NSSound, Stefan Bidigaray, 2009/06/03
- Re: NSSound, Xavier Glattard, 2009/06/03
- Re: NSSound, Stefan Bidigaray, 2009/06/03
- Re: NSSound, Stefan Bidigaray, 2009/06/03
- Re: NSSound, Stefan Bidigaray, 2009/06/03
NSSound, Stefan Bidigaray, 2009/06/03
- Re: NSSound, David Chisnall, 2009/06/04
- Re: NSSound, Fred Kiefer, 2009/06/04
- Re: NSSound, Stefan Bidigaray, 2009/06/04
- Re: NSSound,
David Ayers <=
- Re: NSSound, Stefan Bidigaray, 2009/06/05
- Re: NSSound, Xavier Glattard, 2009/06/05
- Re: NSSound, Stefan Bidigaray, 2009/06/05
- Re: NSSound, Xavier Glattard, 2009/06/05
- Re: NSSound, Stefan Bidigaray, 2009/06/05
- Re: NSSound, David Chisnall, 2009/06/05
- Re: NSSound, Stefan Bidigaray, 2009/06/05
Re: NSSound, David Chisnall, 2009/06/05