Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

aftellframe(3) [centos 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)

Check Out this Related Man Page

AFWRITEFRAMES(3)														  AFWRITEFRAMES(3)

NAME
afWriteFrames - write sample frames to a track in an audio file SYNOPSIS
#include <audiofile.h> AFframecount afWriteFrames(AFfilehandle file, int track, const void *data, AFframecount count); DESCRIPTION
afWriteFrames attempts to write up to count frames of audio data from the buffer data to the audio file handle file. PARAMETERS
file is a valid file handle returned by afOpenFile(3). track is always AF_DEFAULT_TRACK for all currently supported file formats. data is a buffer of sample frames to be written to the file. count is the number of sample frames to be written. RETURN VALUE
afWriteFrames returns the number of sample frames successfully written to file. ERRORS
afWriteFrames can produce these errors: AF_BAD_FILEHANDLE the file handle was invalid AF_BAD_TRACKID the track is not AF_DEFAULT_TRACK AF_BAD_WRITE writing audio data to the file failed AF_BAD_LSEEK seeking within the file failed SEE ALSO
afReadFrames(3) AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 AFWRITEFRAMES(3)
Man Page

7 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

Negative Numbers and If Statements

Hi, Can anyone explain what is going on here: michael-browns-powerbook-g4-15:~ msb65$ start=-1 michael-browns-powerbook-g4-15:~ msb65$ stop=1 michael-browns-powerbook-g4-15:~ msb65$ if ; then echo hello; fi -bash: ; then echo hello; fi hello Are you not allowed to compare negative... (6 Replies)
Discussion started by: msb65
6 Replies

3. UNIX for Dummies Questions & Answers

File split question

I have a flat file in UNIX and I have to perform two tasks based on the below data. The data I have printed here is just sample the original data is too long. The position 110 to 111 (two digit value I have bolded the values) theygives the record type detail in the sample above the record types... (7 Replies)
Discussion started by: techsavvy007
7 Replies

4. Shell Programming and Scripting

modify ls -l (long listing format output) strictly using SED only straightforward goalhard 4 me doh

Below is a sample out of ls -l which I would like to rearrange or modify by field numbers for example I successfully managed to disect using simple paragraph however for ls -l I can't divide the rows or fields by field number. Successful modification by fields using SED sample: $ sed -e... (1 Reply)
Discussion started by: wolf@=NK
1 Replies

5. 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

6. 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

7. Programming

MYSQL - trigger to track changes to fields on update

So I have a php web application that allows updating of records. I would like to track the changes of only the fields that have changed. There are plenty of how to's that involve recreating the original row in a separate table with an additional time/date stamp column but I think this is a big... (1 Reply)
Discussion started by: barrydocks
1 Replies