*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> audiofile/AFsyncfile (3d)              
Title
Content
Arch
Section
 

Contents


afSyncFile(3dm)						       afSyncFile(3dm)


NAME    [Toc]    [Back]

     afSyncFile	- write	out a consistent snapshot of an	audio file without
     actually closing the file

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     int afSyncFile(AFfilehandle file)

PARAMETER    [Toc]    [Back]

     file   is the AFfilehandle	structure for the audio	file you want to
	    update.  This structure is the returned value of the
	    afOpenFile(3dm) call.

RETURN VALUE    [Toc]    [Back]

     afSyncFile() returns a negative value if an error occurs while updating
     file. If no error occurs, the return value	is 0.

DESCRIPTION    [Toc]    [Back]

     afSyncFile() writes out a consistent file image for file without actually
     closing the file and deallocating the file	structure.  You	can call this
     routine in	between	calls to afWriteFrames(3dm) if you want	to make	sure
     that the output file image	always contains	valid header information.

     If	file was opened	for read-only access, afSyncFile() will	simply return
     0.

CAVEATS    [Toc]    [Back]

     This routine will not function correctly if the user changes the file
     position on the file descriptor for the AFfilehandle being	manipulated.
     See the section CAVEATS FOR USING THE HANDLE'S FILE DESCRIPTOR in
     afIntro(3dm) for some important information about how to deal with	this
     situation.

SEE ALSO    [Toc]    [Back]

      
      
     afOpenFile(3dm), afCloseFile(3dm),	afWriteFrames(3dm)
afSyncFile(3dm)						       afSyncFile(3dm)


NAME    [Toc]    [Back]

     afSyncFile	- write	out a consistent snapshot of an	audio file without
     actually closing the file

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     int afSyncFile(AFfilehandle file)

PARAMETER    [Toc]    [Back]

     file   is the AFfilehandle	structure for the audio	file you want to
	    update.  This structure is the returned value of the
	    afOpenFile(3dm) call.

RETURN VALUE    [Toc]    [Back]

     afSyncFile() returns a negative value if an error occurs while updating
     file. If no error occurs, the return value	is 0.

DESCRIPTION    [Toc]    [Back]

     afSyncFile() writes out a consistent file image for file without actually
     closing the file and deallocating the file	structure.  You	can call this
     routine in	between	calls to afWriteFrames(3dm) if you want	to make	sure
     that the output file image	always contains	valid header information.

     If	file was opened	for read-only access, afSyncFile() will	simply return
     0.

CAVEATS    [Toc]    [Back]

     This routine will not function correctly if the user changes the file
     position on the file descriptor for the AFfilehandle being	manipulated.
     See the section CAVEATS FOR USING THE HANDLE'S FILE DESCRIPTOR in
     afIntro(3dm) for some important information about how to deal with	this
     situation.

SEE ALSO    [Toc]    [Back]

      
      
     afOpenFile(3dm), afCloseFile(3dm),	afWriteFrames(3dm)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
AFclosefile IRIX close an audio file, update file header if file was opened for write access.
AFwriteframes IRIX write audio sample frames to a specified track in an audio file
AFreadmisc IRIX read from / write to / move logical read/write pointer for data in a miscellaneous chunk in an audio file
mksnap_ffs FreeBSD take a file system snapshot
dumpsys Tru64 Copies a snapshot of memory to a dump file
AFopenfile IRIX allocate an AFfilehandle structure for an audio file identified by name / by a Unix file descriptor
AFidentifyfd IRIX retrieve the audio file format of a file descriptor / open AFfilehandle
AFreadframes IRIX read sample frames from a specified audio track in an audio file
efi_fsinit HP-UX write an EFI file system header on a device file
sat_write_filehdr IRIX write audit file header, write close time to audit file header
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service