Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

afgetframesize(3) [centos man page]

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

AFSEEKFRAME(3)															    AFSEEKFRAME(3)

NAME
afSeekFrame, afTellFrame - update or access the current sample frame position for a track in an audio file SYNOPSIS
#include <audiofile.h> AFframecount afSeekFrame(AFfilehandle file, int track, AFframecount frameOffset); AFframecount afTellFrame(AFfilehandle file, int track); PARAMETERS
file is a valid audio file handle created by afOpenFile(3). track identifies an audio track within the file. track is always AF_DEFAULT_TRACK for all currently supported audio file formats. frameOffset is a sample frame offset. Valid sample frame offsets must be greater than or equal to zero and strictly less than the number of sample frames contained within the specified audio track. The special value -1 is also allowed. DESCRIPTION
afSeekFrame moves the logical file position for a specified audio track to a desired sample frame location. If frameOffset is -1, afSeekFrame will not modify the current file offset and will instead return the current file position. afTellFrame returns current file position in sample frames. RETURN VALUE
On success, afSeekFrame and afTellFrame will return the current file position as measured in sample frames from the start of the audio track. On failure, afSeekFrame and afTellFrame will return the value -1. ERRORS
The following errors can be generated by afSeekFrame or afTellFrame: AF_BAD_FILEHANDLE file does not represent a valid file handle. AF_BAD_TRACK track does not identify a valid track. AF_BAD_LSEEK A call to lseek failed. AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 AFSEEKFRAME(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to calculate the file size?

HI, Can somebody please tell me how many bytes make a KB & MB. ThANKS. Rooh.:( (3 Replies)
Discussion started by: rooh
3 Replies

2. Programming

C Certification

I would like to become certified in C/C++ and UNIX. Can anyone assist by giving links or details of the best track I could take. (1 Reply)
Discussion started by: Lucky Luke
1 Replies

3. HP-UX

9-track dinosaur

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)
Discussion started by: ncmurf00
8 Replies

4. UNIX for Dummies Questions & Answers

Extracting audio samples from raw file

Is there any way for me to read a raw audio file and save the samples data to a text file for further use in waveform generation? (1 Reply)
Discussion started by: sarvagya
1 Replies

5. Solaris

realteak HD Audio Chipset

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)
Discussion started by: FloridaBSD
1 Replies

6. Shell Programming and Scripting

track the errors in log file

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)
Discussion started by: sdhn1900
3 Replies

7. Shell Programming and Scripting

track one file and copy to another server

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)
Discussion started by: makkar4u
1 Replies

8. Shell Programming and Scripting

Mapping with series from master file and calculate count

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)
Discussion started by: poweroflinux
10 Replies

9. Shell Programming and Scripting

Synchronizing Subtitle track

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)
Discussion started by: ratheeshjulk
3 Replies

10. Solaris

M4000 Memory Fault

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)
Discussion started by: callmebob
5 Replies

11. Shell Programming and Scripting

perform actions at specific locations in data frame

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)
Discussion started by: TuAd
4 Replies

12. Shell Programming and Scripting

How to pick only the files which are generated in one hour?

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)
Discussion started by: akore83
2 Replies

13. Shell Programming and Scripting

How to copy the files which are generated in specific time frame?

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)
Discussion started by: akore83
1 Replies

14. AIX

How can i track the Communication between LPARs?

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)
Discussion started by: System Admin 77
5 Replies

15. Linux

Not able to track harddisk usage by root

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)
Discussion started by: Akshay Hegde
2 Replies