AFGETFRAMESIZE(3)AFGETFRAMESIZE(3)NAME
afGetFrameSize - calculate the frame size in bytes for an audio track
SYNOPSIS
#include <audiofile.h>
float afGetFrameSize (AFfilehandle file, int track, int expand3to4);
PARAMETERS
file is a valid AFfilehandle.
track is an integer which refers to a specific audio track in the file. At present no supported audio file format allows for more than one
audio track within a file, so track should always be AF_DEFAULT_TRACK.
expand3to4 is a boolean-valued integer indicating whether frame size calculation will treat 24-bit data as having a size of 3 bytes or 4
bytes.
DESCRIPTION
afGetFrameSize returns the number of bytes in a frame in a given audio track.
A sample frame consists of one or more samples. For a monaural track, a sample frame will always contain one sample. For a stereophonic
track, a sample frame will always contain two samples, one for the left channel and one for the right channel.
A non-zero value of expand3to4 should be used when calculating the frame size for storage in memory (since 24-bit audio data is presented
in memory as a 4-byte sign-extended integer), while a value of zero should be used for calculating storage on disk where no padding is
added. The parameter expand3to4 is ignored unless the specified audio track contains 24-bit audio data.
AUTHOR
Michael Pruett <michael@68k.org>
Audio File Library 0.3.6 03/06/2013 AFGETFRAMESIZE(3)
Check Out this Related Man Page
AFGETFRAMECOUNT(3)AFGETFRAMECOUNT(3)NAME
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
SYNOPSIS
#include <audiofile.h>
AFframecount afGetFrameCount (AFfilehandle file, int track);
AFfileoffset afGetTrackBytes (AFfilehandle file, int track);
AFfileoffset afGetDataOffset (AFfilehandle file, int track);
PARAMETERS
file is an audio file handle created by a previous call to afOpenFile(3).
track is an integer which specifies an audio track within file. All supported file formats contain exactly one audio track per file, so the
constant AF_DEFAULT_TRACK should always be used.
DESCRIPTION
afGetFrameCount returns the total number of sample frames contained within the specified track of the specified file.
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.
afGetTrackBytes returns the total number of bytes of raw audio data (i.e., prior to decompression or conversion) in the track.
afGetDataOffset returns the offset in bytes of the start of the audio data contained within the specified track of the specified file.
RETURN VALUE
afGetFrameCount returns the total number of sample frames in track.
afGetTrackBytes returns the total number of bytes of audio data in track.
afGetDataOffset returns the offset in bytes to the beginning of the audio data in track.
Each of these routines returns -1 in case of error.
AUTHOR
Michael Pruett <michael@68k.org>
Audio File Library 0.3.6 03/06/2013 AFGETFRAMECOUNT(3)
We just went from HP-UX 10.20 to 11.00.
All the bugs are out, except for a small detail...the old 9-track isn't working.
We receive large amounts of data on reel-to-reel so I kinda need it fixed. In the meantime, I'm trying to see if they can send me a DAT tape instead.
I'm pretty sure the drive... (8 Replies)
I am wondering if there is a way to get opensolaris to accept my realteck hd audio chip set.
dmesg
Thu Oct 23 22:47:38 EDT 2008
Oct 23 22:34:49 opensolaris Use is subject to license terms.
Oct 23 22:34:49 opensolaris unix: features:... (1 Reply)
OS: SuSE Linux Enterprise Server 10
Goal:
To track the errors in log file, If they exits users will be notify by email.
We have a script below:
SrchKey="SRVE0242I:"
LogFile=/PATHtemOut.log
MailTo="DN@mail.com
http:// ! -f PATH/alert.last && touch PATH/alert.last
egrep $SrchKey $LogFile... (3 Replies)
Hello Friends,
I am new to scripting, please guide me in below problem:
I want to track a file, if anyone make any changes to that file then script should copy it to another server.
my whole purpose is to backup a critical file automatically when any change is done to that specific... (1 Reply)
Hi All,
My shell script is calculating the count of each shortcode series wise whose sample output is as follows:
--------------------------
56882
9124 1
9172 1
9173 4
8923 6
9175 1
9058 2
7398 2
--------------------------
58585
series count
9124 1
8858 17
9061 21
9125 21 (10 Replies)
Hi,
I have a subtitle track something like this.
1
00:01:18,700 --> 00:01:20,660
Hi.
2
00:01:27,040 --> 00:01:30,380
-How'd it go?
-Lousy.
3
00:01:30,460 --> 00:01:34,300
Got a '63 Thunderbird
I would've sold in a day a year ago.
4
00:01:34,330 --> 00:01:37,050 (3 Replies)
Hi Guys and Gals,
Does anyone know how to track down a faulty DIMM on the memory board of an M4000?
showhardconf tells me which board it is, but was wondering if there was a way to track it down to a DIMM?
Thanks in advance
Martin (5 Replies)
Hi everyone,
I got a data frame like the one below and and would like to do the following:
Ignore the first 3 rows and check in all following rows the second position. If the value is >500, subtract 100.
Example DF:
ABC 22 DE 12
BCD 223 GH 12
EFG 2104 DH ... (4 Replies)
Hello Masters,
I need one help.
I want to copy the files which are continuously generating on one server.
But this would be on hourly basis.
e.g.
-rw-rw-r-- 1 akore akore 0 Feb 12 03:20 test1.log
-rw-rw-r-- 1 akore akore 0 Feb 12 03:42 test2.log
-rw-rw-r-- 1 akore akore 0 Feb 12 04:22... (2 Replies)
Hello Masters,
I need one help.
I want to copy the files which are continuously generating on one server.
e.g.
-rw-rw-r-- 1 akore akore 0 Feb 12 03:20 test1.log
-rw-rw-r-- 1 akore akore 0 Feb 12 03:42 test2.log
-rw-rw-r-- 1 akore akore 0 Feb 12 04:22 test3.log
-rw-rw-r-- 1 akore akore 0... (1 Reply)
Hello Everyone,
i got a question in AIX. How can i track the communication between LPARs.
i mean how can we find if a program/account trying to access a directory/file inside AIX LPAR or from another LPAR ?
if some one is trying to access our LPAR. where can i track those info? or a outside... (5 Replies)
Hi all !
I am unable to track 6 GB memory through df -h command
please anyone tell me why its showing 57M though used memory is 101G
OS - Ubuntu 12.04 LTS 32-Bit
Filesystem Size Used Avail Use% Mounted on
/dev/sda9 107G 101G 57M 100% /
udev 1.9G 4.0K 1.9G ... (2 Replies)