source: trunk/third/audiofile/docs/afGetFrameSize @ 17099

Revision 17099, 1.3 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17098, which included commits to RCS files with non-trunk default branches.
Line 
1afGetFrameSize returns the frame size in bytes for a specified audio
2track.
3
4SYNOPSIS
5#include <audiofile.h>
6
7float afGetFrameSize (AFfilehandle file, int track, int expand3to4);
8
9PARAMETERS
10file is a valid AFfilehandle.
11
12track is an integer which refers to a specific audio track in the
13file.  At present no supported audio file format allows for more than
14one audio track within a file, so track should always be
15AF_DEFAULT_TRACK.
16
17If expand3to4 is a non-zero value, then 3-byte frames will be treated
18as taking up 4 bytes in memory.  This is useful for calculating how
19much memory will be needed to store audio data suitable for playback
20since 24-bit audio data is typically aligned on 32-bit boundaries.  (At
21least that's how it's done on SGI systems; I know of no other computer
22system that has support for 24-bit audio.)
23
24DESCRIPTION
25afGetFrameSize returns the number of bytes in a frame in the given
26track of the specified file.
27
28A sample frame consists of one or more samples.  For a monaural track,
29a sample frame will always contain one sample.  For a stereophonic
30track, a sample frame will always contain two samples, one for the left
31channel and one for the right channel.
32
33The parameter expand3to4 is ignored unless the specified audio track
34contains 24-bit sampled audio data.
Note: See TracBrowser for help on using the repository browser.