HH
VS1005 VSOS A
UDIO
S
UBSYSTEM
VS1005g
13.1
Decoder Loop Functionality
Some of the audio decoders include a chance to play a part of the audio file in a loop.
Depending on the decoder, there may or may not be support for the
The list of audio decoders that contains loop functionality, and the level of support, is
provided in the following table:
Audio decoders with loop functionality
LibName
Set
Sample
Smooth
3
Comments
timing
1
accurate
2
decvorb
Yes
Yes
No
-
decwav
Yes
Yes
4
No
-
1
If this feature is not available, the decoder is only able to loop the complete audio file.
To make sure user software is compatible with potential future versions of the driver
which may start supporting the Set Timing feature, Loop structure should be set as
follows:
loop->startSeconds = loop->endSeconds = loop->endSamples = 0;
loop->endSeconds = 0xFFFFFFFFU;
2
If this feature is available, looping is sample-accurate. If not available, loop start and
stop points may vary slightly.
3
If this feature is available, loop supports the CFL_DECLICK flag which declicks the loop
but is not sample accurate. If this feature is missing from the decoder, flag CFL_DECLICK
is ignored.
4
Exception: IMA ADPCM is not sample accurate.
An example of how to use the loop feature is provided in solution PlayFileLoop in the
VSOS Root and Libraries Source Code
package. Read the README.TXT file for details.
Rev. 3.57
2019-04-10
Page