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

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

Contents


afSetLoopStart(3dm)					   afSetLoopStart(3dm)


NAME    [Toc]    [Back]

     afSetLoopStart, afSetLoopEnd, afSetLoopMode, afSetLoopTrack - set the
     start/end markers,	play mode, and track in	an AFfilehandle	structure for
     a specified loop.

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     void afSetLoopStart(AFfilehandle file, int	instid,
				int loopid, int	markid)

     void afSetLoopEnd(AFfilehandle file,   int	instid,
				int loopid, int	markid)

     void afSetLoopTrack(AFfilehandle file, int	instid,
				int loopid, int	trackid)

     void afSetLoopMode(AFfilehandle file,  int	instid,
				int loopid, int	mode)

PARAMETER    [Toc]    [Back]

     setup     is an AFfilehandle structure, previously	created	by a call to
	       afOpenFile(3dm) or afOpenFD(3dm), which opened an audio file
	       for write access.

     instid    is a positive integer value which identifies a chunk of
	       instrument parameters.  Since the number	of supported inst
	       chunks varies with file format, applications should always
	       retrieve	this value via afGetInstIDs(3dm).

     loopid    is a positive integer value which identifies a loop stored in
	       the instrument configuration given by instid.

     markid    is a positive integer marker value which	identifies a marker
	       associated with the track given by trackid.

	       The start and end sample	frames of a loop are indicated by
	       marker positions	stored in marker structures.

     trackid   is a positive integer ID	indicating which audio track in	file
	       will contain the	specified loop.

	       Since all currently supported audio file	formats	contain	a
	       single audio track per file, the	constant value
	       AF_DEFAULT_TRACK	should always be used here for now.

     mode      is a constant integer indicates the play	mode for the loop.

DESCRIPTION    [Toc]    [Back]

     These routines allow you to specify loops in an audio track.  Each	takes
     a loopid argument which provides a	handle to a loop structure.




									Page 1






afSetLoopStart(3dm)					   afSetLoopStart(3dm)



     In	an AIFF-C (or AIFF) file, the instrument chunk,	denoted	by integer
     constant AF_DEFAULT_INST, contains	two loops - a "sustain"	loop and a
     "release" loop.

     You can obtain loop ID's for the two loops	by calling afGetLoopIDs(3dm)
     after you've opened an audio file,	or you can supply your own loop	ID's
     by	calling	afInitLoopIDs(3dm) before the file is opened.

     For AIFF and AIFF-C files you map your loop ID list to the
     sustain/release loops for the default instrument by calling
     afSetInstParamLong(3dm).

     The start and end sample frames for a loop	are indicated by marker
     structures. An AIFF-C (or AIFF) track may contain one or more marker
     structures.  A marker structure stores a location in an audio track.

     To	store two loops, you typically need four markers, two for each loop.
     See the man page for afSetMarkPosition(3dm) for information about how you
     assign a marker to	a specific location in an audio	track.

     afSetLoopStart() set the start frame marker for a given loop in the
     specified audio track.  afSetLoopEnd sets the end frame marker for	a
     loop.  The	loop is	specified by the value of loopid, a loop identifier
     which was previously configured into the audio track by a call to
     afInitLoopIDs().

     afSetLoopTrack() is a placeholder routine which specifies an audio	track
     in	a file for a loop.  Since an AIFF-C (AIFF) file	always contain one
     audio track, the loops automatically map to AF_DEFAULT_TRACK.

     afSetLoopMode() sets the play mode	for a loop.  The following modes are
     supported:

	       AF_LOOP_MODE_NOLOOP causes the loop to be ignored
	       AF_LOOP_MODE_FORW   forward loop
	       AF_LOOP_MODE_FORWBAKW	forward/backward loop

NOTES    [Toc]    [Back]

     It	is now possible	to set the loop	start and end frame directly without
     using the associated markers (see afSetLoopStartFrame(3dm)).  This	is
     useful and	necessary for audio file formats which support loops which are
     independent of any	markers, and for formats which support loops but which
     do	not support markers at all.  For formats which always associate	loops
     and markers, such as AIFF(4) and WAVE(4), afSetLoopStart()	must be	used
     or	the file update	will fail.

SEE ALSO    [Toc]    [Back]

      
      
     afNewFileSetup(3dm), afOpenFile(3dm), afInitLoopIDs(3dm),
     afGetLoopIDs(3dm),	afInitMarkIDs(3dm), afSetMarkPosition(3dm)
afSetLoopStart(3dm)					   afSetLoopStart(3dm)


NAME    [Toc]    [Back]

     afSetLoopStart, afSetLoopEnd, afSetLoopMode, afSetLoopTrack - set the
     start/end markers,	play mode, and track in	an AFfilehandle	structure for
     a specified loop.

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     void afSetLoopStart(AFfilehandle file, int	instid,
				int loopid, int	markid)

     void afSetLoopEnd(AFfilehandle file,   int	instid,
				int loopid, int	markid)

     void afSetLoopTrack(AFfilehandle file, int	instid,
				int loopid, int	trackid)

     void afSetLoopMode(AFfilehandle file,  int	instid,
				int loopid, int	mode)

PARAMETER    [Toc]    [Back]

     setup     is an AFfilehandle structure, previously	created	by a call to
	       afOpenFile(3dm) or afOpenFD(3dm), which opened an audio file
	       for write access.

     instid    is a positive integer value which identifies a chunk of
	       instrument parameters.  Since the number	of supported inst
	       chunks varies with file format, applications should always
	       retrieve	this value via afGetInstIDs(3dm).

     loopid    is a positive integer value which identifies a loop stored in
	       the instrument configuration given by instid.

     markid    is a positive integer marker value which	identifies a marker
	       associated with the track given by trackid.

	       The start and end sample	frames of a loop are indicated by
	       marker positions	stored in marker structures.

     trackid   is a positive integer ID	indicating which audio track in	file
	       will contain the	specified loop.

	       Since all currently supported audio file	formats	contain	a
	       single audio track per file, the	constant value
	       AF_DEFAULT_TRACK	should always be used here for now.

     mode      is a constant integer indicates the play	mode for the loop.

DESCRIPTION    [Toc]    [Back]

     These routines allow you to specify loops in an audio track.  Each	takes
     a loopid argument which provides a	handle to a loop structure.




									Page 1






afSetLoopStart(3dm)					   afSetLoopStart(3dm)



     In	an AIFF-C (or AIFF) file, the instrument chunk,	denoted	by integer
     constant AF_DEFAULT_INST, contains	two loops - a "sustain"	loop and a
     "release" loop.

     You can obtain loop ID's for the two loops	by calling afGetLoopIDs(3dm)
     after you've opened an audio file,	or you can supply your own loop	ID's
     by	calling	afInitLoopIDs(3dm) before the file is opened.

     For AIFF and AIFF-C files you map your loop ID list to the
     sustain/release loops for the default instrument by calling
     afSetInstParamLong(3dm).

     The start and end sample frames for a loop	are indicated by marker
     structures. An AIFF-C (or AIFF) track may contain one or more marker
     structures.  A marker structure stores a location in an audio track.

     To	store two loops, you typically need four markers, two for each loop.
     See the man page for afSetMarkPosition(3dm) for information about how you
     assign a marker to	a specific location in an audio	track.

     afSetLoopStart() set the start frame marker for a given loop in the
     specified audio track.  afSetLoopEnd sets the end frame marker for	a
     loop.  The	loop is	specified by the value of loopid, a loop identifier
     which was previously configured into the audio track by a call to
     afInitLoopIDs().

     afSetLoopTrack() is a placeholder routine which specifies an audio	track
     in	a file for a loop.  Since an AIFF-C (AIFF) file	always contain one
     audio track, the loops automatically map to AF_DEFAULT_TRACK.

     afSetLoopMode() sets the play mode	for a loop.  The following modes are
     supported:

	       AF_LOOP_MODE_NOLOOP causes the loop to be ignored
	       AF_LOOP_MODE_FORW   forward loop
	       AF_LOOP_MODE_FORWBAKW	forward/backward loop

NOTES    [Toc]    [Back]

     It	is now possible	to set the loop	start and end frame directly without
     using the associated markers (see afSetLoopStartFrame(3dm)).  This	is
     useful and	necessary for audio file formats which support loops which are
     independent of any	markers, and for formats which support loops but which
     do	not support markers at all.  For formats which always associate	loops
     and markers, such as AIFF(4) and WAVE(4), afSetLoopStart()	must be	used
     or	the file update	will fail.

SEE ALSO    [Toc]    [Back]

      
      
     afNewFileSetup(3dm), afOpenFile(3dm), afInitLoopIDs(3dm),
     afGetLoopIDs(3dm),	afInitMarkIDs(3dm), afSetMarkPosition(3dm)


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
AFgetloopstart IRIX get the start/end markers, play mode, and track from an AFfilehandle structure for a specified loop.
afGetLoopStartFrame IRIX get the start/end frame and loop count from an AFfilehandle structure for a specified loop.
afSetLoopStartFrame IRIX set the start/end frame and loop count from an AFfilehandle structure for a specified loop.
AFgetchannels IRIX get the number of interleaved track / virtual channels from an AFfilehandle structure for an audio track
afGetFrameSize IRIX get the track / virtual frame size in bytes for a specified audio track from an AFfilehandle structure
AFgetrate IRIX get the track/virtual sample rate for a specified audio track from an AFfilehandle structure
afGetPCMMapping IRIX get the track / virtual PCM mapping values for a specified audio track from an AFfilehandle structure
AFgetsampfmt IRIX get the track / virtual sample format or byte order for a specified audio track from an AFfilehandle structure
AFgetcompression IRIX get the compression type and parameters for an audio track from an AFfilehandle structure
AFgetaeschanneldata IRIX get/set AES channel status information in an AFfilehandle structure for an audio track
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service