• 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: what type for 24bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what type for 24bit


  • Subject: Re: what type for 24bit
  • From: Kurt Bigler <email@hidden>
  • Date: Fri, 23 May 2003 15:23:29 -0700

on 5/23/03 1:29 PM, Mark's Studio <email@hidden> wrote:

> Im making a Cocoa sound editor, and im working on the soundfile part of
> it,
> 8 bit = SInt8
> 16 bit = SInt16
> 32 bit = Float32

32 bit might be SInt32, depending on the format. The "32-bit" data is often
really 24-bit but padded to 32-bits for simpler access.

> But what is used for 24 bit?

Use a UInt8 pointer to move 3 successive bytes into or out of an SInt32
variable which you use to hold 24-bits that are of interest to you.

> I was also thinking about converting the soundfile to Float32 when
> opened for editing,
> and then converted back to the original format when saved.

Depending on what processing you are doing in your "editing" you might even
want to use Float64 sometimes. Some kinds of filter implementations will
have problems with Float32. You have to go study up on the DSP stuff.
Doing much in the way of DSP in integer variables can be very difficult and
most people will use floats to avoid much hair-pulling.

If you are doing calculations in batch mode as opposed to real-time, then
you might want to just use Float64 for all everything except when you write
out to the file. This will be a bit slower, but will work well for
everything. You could try Float32 everywhere if your filtering needs are
simple enough.

-Kurt Bigler

> What are the pros./cons.
>
>
>
> Peter Mark
>
> Mark's Recording Studio A/S
> Lundeskovsvej 3 2900 Hellerup
> Denmark
> Tel: +45 35366078 Fax: +45 35366038
> www.marks-studio.dk
> email@hidden
> _______________________________________________
> coreaudio-api mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >what type for 24bit (From: "Mark's Studio" <email@hidden>)

  • Prev by Date: Re: AUEffectBase and Stream formats
  • Next by Date: Re: What corresponds to kAudioDevicePropertyDeviceIsRunningSomewhere in an audio driver?
  • Previous by thread: what type for 24bit
  • Next by thread: Onkyo MSE-U33HB under OS X?
  • Index(es):
    • Date
    • Thread