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

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

Contents


afGetLoopIDs(3dm)					     afGetLoopIDs(3dm)


NAME    [Toc]    [Back]

     afGetLoopIDs - get	a number and list of loop ID's for an instrument
     configuration

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     int afGetLoopIDs(AFfilehandle file, int instid, int loopids[])

PARAMETER    [Toc]    [Back]

     file      expects an AFfilehandle structure, created when an audio	file
	       is opened by a call to afOpenFile(3dm) or its equivalent.

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

     loopids   is an array of integer locations	used to	return a list of
	       (unique)	positive loop id's for the given instrument chunk.  If
	       loopids is a null pointer, afGetLoopIDs() simply	returns	the
	       number of loops for the given instrument.

RETURN VALUE    [Toc]    [Back]

     afGetLoopIDs() returns a nonnegative integer count	of the number of loop
     structures	in the specified instrument chunk.  You	use this value to
     determine the size	of an array which you pass back	to afGetLoopIDs().

     For AIFF-C	(and AIFF) files, the number of	loop structures	in the
     AF_DEFAULT_INST chunk is always 2:	a sustain loop and a release loop.
     For other file formats, this number may vary from 0 to an unlimited
     quantity.

DESCRIPTION    [Toc]    [Back]

     afGetLoopIDs() reports the	number of loops	for instid, and	supplies a
     list of unique positive id's for the loops	in loopids[].

     Typically,	you call afGetLoopIDs()	twice.	The first time,	you pass it a
     null loopids pointer and just check the return value.  This value tells
     you how many locations to allocate	in the loopids[] array,	which you pass
     back to afGetLoopIDs() to obtain a	list of	loop ID's.

     You can then use these id's to reference the individual loops and obtain
     information about them such as play mode, start and end points (see
     afGetLoopStart(3dm)), and for some	formats, the loop count	(see
     afGetLoopCount(3dm)).

NOTE    [Toc]    [Back]

     For AIFF-C	(and AIFF), you	can obtain loop	ID's for the sustain and
     release loops in the instrument map directly by calling
     afGetInstParamLong(3dm) with the parameters AF_INST_SUSLOOPID and
     AF_INST_RELLOOPID.



									Page 1






afGetLoopIDs(3dm)					     afGetLoopIDs(3dm)


CAVEATS    [Toc]    [Back]

     These functions may return	any number of loops within an inst, not	just
     the fixed value of	2 current found	in AIFF/AIFF-C files.  Other supported
     file formats have different loop configurations than those	in AIFF/AIFFC.
	 Applications may use the afQuery(3dm) system to determine whether a
     format supports loops and if so, the number allowed.  A program should be
     written to	expect and ignore loop configurations it does not understand.

SEE ALSO    [Toc]    [Back]

      
      
     afOpenFile(3dm), afInitLoopIDs(3dm), afGetInstParamLong(3dm),
     afGetLoopStart(3dm)
afGetLoopIDs(3dm)					     afGetLoopIDs(3dm)


NAME    [Toc]    [Back]

     afGetLoopIDs - get	a number and list of loop ID's for an instrument
     configuration

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     int afGetLoopIDs(AFfilehandle file, int instid, int loopids[])

PARAMETER    [Toc]    [Back]

     file      expects an AFfilehandle structure, created when an audio	file
	       is opened by a call to afOpenFile(3dm) or its equivalent.

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

     loopids   is an array of integer locations	used to	return a list of
	       (unique)	positive loop id's for the given instrument chunk.  If
	       loopids is a null pointer, afGetLoopIDs() simply	returns	the
	       number of loops for the given instrument.

RETURN VALUE    [Toc]    [Back]

     afGetLoopIDs() returns a nonnegative integer count	of the number of loop
     structures	in the specified instrument chunk.  You	use this value to
     determine the size	of an array which you pass back	to afGetLoopIDs().

     For AIFF-C	(and AIFF) files, the number of	loop structures	in the
     AF_DEFAULT_INST chunk is always 2:	a sustain loop and a release loop.
     For other file formats, this number may vary from 0 to an unlimited
     quantity.

DESCRIPTION    [Toc]    [Back]

     afGetLoopIDs() reports the	number of loops	for instid, and	supplies a
     list of unique positive id's for the loops	in loopids[].

     Typically,	you call afGetLoopIDs()	twice.	The first time,	you pass it a
     null loopids pointer and just check the return value.  This value tells
     you how many locations to allocate	in the loopids[] array,	which you pass
     back to afGetLoopIDs() to obtain a	list of	loop ID's.

     You can then use these id's to reference the individual loops and obtain
     information about them such as play mode, start and end points (see
     afGetLoopStart(3dm)), and for some	formats, the loop count	(see
     afGetLoopCount(3dm)).

NOTE    [Toc]    [Back]

     For AIFF-C	(and AIFF), you	can obtain loop	ID's for the sustain and
     release loops in the instrument map directly by calling
     afGetInstParamLong(3dm) with the parameters AF_INST_SUSLOOPID and
     AF_INST_RELLOOPID.



									Page 1






afGetLoopIDs(3dm)					     afGetLoopIDs(3dm)


CAVEATS    [Toc]    [Back]

     These functions may return	any number of loops within an inst, not	just
     the fixed value of	2 current found	in AIFF/AIFF-C files.  Other supported
     file formats have different loop configurations than those	in AIFF/AIFFC.
	 Applications may use the afQuery(3dm) system to determine whether a
     format supports loops and if so, the number allowed.  A program should be
     written to	expect and ignore loop configurations it does not understand.

SEE ALSO    [Toc]    [Back]

      
      
     afOpenFile(3dm), afInitLoopIDs(3dm), afGetInstParamLong(3dm),
     afGetLoopStart(3dm)


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
AFinitloopids IRIX initialize a list of loop ID's for a given instrument in an AFfilesetup structure
AFgetinstparamlong IRIX get / set a parameter list / long parameter value for an instrument configuration in an AFfilehandle structure
AFgetinstids IRIX get a list of instrument configurations from an AFfilehandle
AFinitinstids IRIX specify a list of instrument parameter chunk identifiers to be stored in an AFfilesetup structure.
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.
llength IRIX Count the number of elements in a list
fs_config_get_devs Tru64 Obtains a list of devices in an AdvFS domain configuration.
varargs IRIX allow variable number of arguments in argument list
AFgetmarkids IRIX get the number and list of marker ID's for an audio track
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service