home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaaffffGGGGeeeettttFFFFrrrraaaammmmeeeeCCCCoooouuuunnnntttt((((3333ddddmmmm)))) aaaaffffGGGGeeeettttFFFFrrrraaaammmmeeeeCCCCoooouuuunnnntttt((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- afGetFrameCount, AFgetframecnt, afGetTrackBytes, afGetDataOffset - get
- the total sample frame count / data bytes / data offset for a specified
- audio track from an AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee structure
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiiooooffffiiiilllleeee....hhhh>>>>
-
- AAAAFFFFffffrrrraaaammmmeeeeccccoooouuuunnnntttt aaaaffffGGGGeeeettttFFFFrrrraaaammmmeeeeCCCCoooouuuunnnntttt((((AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee ffffiiiilllleeee,,,, iiiinnnntttt ttttrrrraaaacccckkkk))))
-
- AAAAFFFFffffiiiilllleeeeooooffffffffsssseeeetttt aaaaffffGGGGeeeettttTTTTrrrraaaacccckkkkBBBByyyytttteeeessss((((AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee ffffiiiilllleeee,,,, iiiinnnntttt ttttrrrraaaacccckkkk))))
-
- iiiinnnntttt aaaaffffGGGGeeeettttDDDDaaaattttaaaaOOOOffffffffsssseeeetttt((((AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee ffffiiiilllleeee,,,, iiiinnnntttt ttttrrrraaaacccckkkk))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _f_i_l_e is an AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee structure, previously created by a call to
- aaaaffffOOOOppppeeeennnnFFFFiiiilllleeee(3dm).
-
- _t_r_a_c_k is an integer which identifies an audio track in _f_i_l_e.
-
- Since all currently supported file formats contain exactly one
- audio track per file, the constant AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTRRRRAAAACCCCKKKK should always
- be used here.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- aaaaffffGGGGeeeettttFFFFrrrraaaammmmeeeeCCCCoooouuuunnnntttt(((()))) returns the total number of sample frames in _t_r_a_c_k.
- aaaaffffGGGGeeeettttTTTTrrrraaaacccckkkkBBBByyyytttteeeessss(((()))) returns the total number of bytes of audio data in
- _t_r_a_c_k. aaaaffffGGGGeeeettttDDDDaaaattttaaaaOOOOffffffffsssseeeetttt(((()))) returns the offset in bytes to the beginning of
- the audio data in _t_r_a_c_k.
-
- In case of error, -1 is returned by all of these routines.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- aaaaffffGGGGeeeettttFFFFrrrraaaammmmeeeeCCCCoooouuuunnnntttt(3dm) returns the current total number of sample frames in
- an audio track in the file represented by the AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee argument.
-
- In general, each sample frame in a given track consists of n samples,
- where n is the value returned by aaaaffffGGGGeeeettttCCCChhhhaaaannnnnnnneeeellllssss(3dm) for track. For
- monaural data, a sample frame consists of a single audio sample. For
- stereo data, a sample frame consists of a <left, right> stereo sample
- pair.
-
- aaaaffffGGGGeeeettttTTTTrrrraaaacccckkkkBBBByyyytttteeeessss(((()))) returns the total number of bytes of raw audio data
- (i.e., prior to decompression) in _t_r_a_c_k. This is useful for determining
- raw file seek points, etc.
-
- The return types AAAAFFFFffffrrrraaaammmmeeeeccccoooouuuunnnntttt and AAAAFFFFffffiiiilllleeeeooooffffffffsssseeeetttt are large enough to hold
- the maximum possible frame count value and maximum possible byte size,
- respectively, for the current file system.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- aaaaffffGGGGeeeettttFFFFrrrraaaammmmeeeeCCCCoooouuuunnnntttt((((3333ddddmmmm)))) aaaaffffGGGGeeeettttFFFFrrrraaaammmmeeeeCCCCoooouuuunnnntttt((((3333ddddmmmm))))
-
-
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- This routine may not function correctly if the user changes the file
- position on the file descriptor for the AFfilehandle being manipulated.
- See the section _C_A_V_E_A_T_S _F_O_R _U_S_I_N_G _T_H_E _H_A_N_D_L_E'_S _F_I_L_E _D_E_S_C_R_I_P_T_O_R in
- aaaaffffIIIInnnnttttrrrroooo(3dm) for some important information about how to deal with this
- situation.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- afOpenFile(3dm), afWriteFrames(3dm), afReadFrames(3dm),
- afGetChannels(3dm). afGetVirtualChannels(3dm), afSetVirtualChannels(3dm)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-