Debian Codegraph @

docs/afGetFrameCount.3

raw
1 '\" t
2 .\" Title: afGetFrameCount
3 .\" Author: [see the "AUTHOR" section]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5 .\" Date: 03/06/2013
6 .\" Manual: \ \&
7 .\" Source: Audio File Library 0.3.6
8 .\" Language: English
9 .\"
10 .TH "AFGETFRAMECOUNT" "3" "03/06/2013" "Audio File Library 0\&.3\&.6" "\ \&"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 afGetFrameCount, afGetTrackBytes, afGetDataOffset \- get the total sample frame count, length of audio track in bytes, offset of the audio track for a track in an audio file
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 #include <audiofile\&.h>
36 .fi
37 .sp
38 .nf
39 AFframecount afGetFrameCount (AFfilehandle file, int track);
40 .fi
41 .sp
42 .nf
43 AFfileoffset afGetTrackBytes (AFfilehandle file, int track);
44 .fi
45 .sp
46 .nf
47 AFfileoffset afGetDataOffset (AFfilehandle file, int track);
48 .fi
49 .SH "PARAMETERS"
50 .sp
51 \fIfile\fR is an audio file handle created by a previous call to \fBafOpenFile\fR(3)\&.
52 .sp
53 \fItrack\fR is an integer which specifies an audio track within \fIfile\fR\&. All supported file formats contain exactly one audio track per file, so the constant AF_DEFAULT_TRACK should always be used\&.
54 .SH "DESCRIPTION"
55 .sp
56 afGetFrameCount returns the total number of sample frames contained within the specified track of the specified file\&.
57 .sp
58 Each sample frame of audio consists of a fixed number of samples (equal to the number of audio channels in the track\&. For monaural data, a sample frame consists of one audio sample\&. For stereophonic data, a sample frame consists of a stereo pair\&.
59 .sp
60 afGetTrackBytes returns the total number of bytes of raw audio data (i\&.e\&., prior to decompression or conversion) in the track\&.
61 .sp
62 afGetDataOffset returns the offset in bytes of the start of the audio data contained within the specified track of the specified file\&.
63 .SH "RETURN VALUE"
64 .sp
65 afGetFrameCount returns the total number of sample frames in \fItrack\fR\&.
66 .sp
67 afGetTrackBytes returns the total number of bytes of audio data in \fItrack\fR\&.
68 .sp
69 afGetDataOffset returns the offset in bytes to the beginning of the audio data in \fItrack\fR\&.
70 .sp
71 Each of these routines returns \-1 in case of error\&.
72 .SH "AUTHOR"
73 .sp
74 Michael Pruett <michael@68k\&.org>