Re: [LAU] RF64 file format and commercial software

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Thursday, October 14, 2010 - 4:56 am

fons@kokkinizita.net wrote:

> I'm not really in love with RF64. For my own multichannel use I've

Thats an interesting choice.

The main thing with CAF is that it is by default a format optimised
for big endian systems (it was developed on PowerPC). All the chunk
length fields are stored big endian and by default things like 16
bit PCM data is stored big endian.

The libsndfile CAF implementation leaves the CAF defaults as they are
but allows you to specify that the audio data be stored little endian
or with the same endian-ness as the CPU. This is done by specifying
the format to be either:

SF_FORMAT_CAF | SF_FORMAT_PCM_16 | SF_ENDIAN_LITTLE

or

SF_FORMAT_CAF | SF_FORMAT_PCM_16 | SF_ENDIAN_CPU

If you are on a little endian CPU and using sf_read_short() to read
data, reading file data of the same endian-ness as the CPU will be
significatly faster than reading data that needs to be byte swapped.
Similarly for SF_FORMAT_FLOAT being read using sf_read_float().

Just letting you know.

Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] RF64 file format and commercial software, Erik de Castro Lopo, (Tue Oct 12, 10:49 am)
Re: [LAU] RF64 file format and commercial software - again, Erik de Castro Lopo, (Wed Oct 13, 8:01 am)
Re: [LAU] RF64 file format and commercial software, Erik de Castro Lopo, (Thu Oct 14, 4:56 am)
Re: [LAU] RF64 file format and commercial software, Erik de Castro Lopo, (Thu Oct 14, 10:47 pm)
Re: [LAU] RF64 file format and commercial software, Florian Faber, (Thu Oct 14, 6:55 am)
Re: [LAU] RF64 file format and commercial software, Erik de Castro Lopo, (Thu Oct 14, 8:14 am)