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 <fredkie...@gmx.de> 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




_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to