Convert to float and more
Convert to float and more
- Subject: Convert to float and more
- From: "Mark's Studio" <email@hidden>
- Date: Wed, 4 Jun 2003 10:46:54 +0200
Hi
I have a few questions.
Im working on a Cocoa sound editing app.
When i import a file i just copy the sound bytes into a NSData and keep
it in the original format.
All my drawing and DSP code use floats, so if the original sound format
is 16bit i do a lot of sample/32768.
I was thinking of converting the samples to float when importing the
file, but that will double the data size, so i still need to decide
what's best.
I tried to search the archives for the fastest way to convert from int
to float and back. but did not find much,
someone mentioned there might be a altivec snippet for converting?
I also looked at CASampleTools.cpp ( but to be honest i don't
understand C++).
When i play a file through the defaultAudioOutput, and the stream
format is not float, is there another conversion to float within
coreaudio?
I also want to import/export MP3 and other compressed formats what is
the best way to do that?
Thanks
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.