• 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: Convert to float and more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert to float and more


  • Subject: Re: Convert to float and more
  • From: "Mark's Studio" <email@hidden>
  • Date: Thu, 5 Jun 2003 10:05:14 +0200

Thanks for all your hints

This is exactly my problem i need it on single sample basis.

My original idea was to open the audiofile and keep the audio in its
original format,
all my drawing and DSP functions works with float values,
so i can see that the bottlenecks are the conversion to float,
plus all the extra code to handle the different sample formats in every
function.

So i think i've come to the conclusion that i want to try and convert
the audiofile to float when opened, even though the size
will be 2-4 times bigger, i hope it will be faster to skip all the
conversion compared to the increase in size.



On torsdag, jun 5, 2003, at 09:35 Europe/Copenhagen, Urs Heckmann wrote:

> Am Mittwoch, 04.06.03, um 21:48 Uhr (Europe/Berlin) schrieb Jeff Moore:
>>
>> The AudioConverter blitters use Altivec, are fully optimized, and
>> take advantage of a few neat math tricks so they're a ton faster.
>>
>
> Hmmm, many applications/plugins of course need such tricks on a single
> sample basis. For instance when there are dependencies or to generate
> a wavetable index from a fractional counter etc.
>
> Wouldn't it be nice to publish a small tutorial with ultra-optimized
> example code and tricks for common problems? I.e.:
>
> sin-cos approximation (getting both values at once)
> pow( 2, x )
> (float) int
> (int) float
>
> Cheers,
>
> ;) Urs
>
>
> (hehe, or do you know anything we don't, like
> speed-doesn't-matter-anymore-soon 8-))
> _______________________________________________
> 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.
>
>
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.

References: 
 >Re: Convert to float and more (From: Urs Heckmann <email@hidden>)

  • Prev by Date: Re: Convert to float and more
  • Next by Date: Re: High Pass Filter example?
  • Previous by thread: Re: Convert to float and more
  • Next by thread: Re: Convert to float and more
  • Index(es):
    • Date
    • Thread