GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AFREADFRAMES(3)   AFREADFRAMES(3)

afReadFrames - read sample frames from a track in an audio file

#include <audiofile.h>

AFframecount afReadFrames(AFfilehandle file, int track, void *data,
    int count);

afReadFrames attempts to read up to count frames of audio data from the audio file handle file into the buffer at data.

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 storing count frames of audio sample data.

count is the number of sample frames to be read.

afReadFrames returns the number of frames successfully read from file.

afReadFrames can produce these errors:

AF_BAD_FILEHANDLE

the file handle was invalid

AF_BAD_TRACKID

the track parameter is not AF_DEFAULT_TRACK

AF_BAD_READ

reading audio data from the file failed

AF_BAD_LSEEK

seeking within the file failed

afWriteFrames(3)

Michael Pruett <michael@68k.org>
03/06/2013 Audio File Library 0.3.6

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.