Copyright © 2005-2011 MultiMedia Soft

How to retrieve information about loaded songs

Previous pageReturn to chapter overviewNext page

Audio DJ Studio can easily retrieve information about the song contents.

If you work with single song files you can:

 

Load a song file through the LoadSound method.
Retrieve the sound duration through the GetSoundDuration and/or GetFormattedSoundDuration methods.
Detect the initial and final portions of silence through a call to the RequestSoundSilenceDetection or the DetectSoundSilence methods: silence portions can also be detected automatically during a LoadSound call if the SetAutomaticSilenceDetection has been previously called; once detected, the container application will be notified about the positions of silent portions through the SilencePositionAvailable event.
Force the control to perform a deeper analysis using the ReadSoundInfo2 method

 

If you work with playlists you can:

 

Create and fill a playlist (see How to create and manage a playlist).
Use the PlayListGetItemString in order to receive one or more strings containing the needed information.

 

 

Sound files in WAV format may contain information stored inside "chunks": Audio DJ Studio can retrieve contents of BEXT and CART chunks in the following way:

 

Load a WAV file through the LoadSound method.
Force the control to perform a deeper analysis using the ReadSoundInfo2 method
Check if the loaded WAV file contains CART and/or BEXT chunks through the IsWavChunkAvailable method.
Obtain single fields of the chunks using one of the following methods:

* GetWavChunkStringInfo for string fields

* GetWavChunkNumericInfo for numeric fields

* GetWavChunkBinaryInfo for binary fields

 

Tags contents can be obtained through a set of dedicated methods: see the How to read TAG information in sound files and How to retrieve basic TAG information from the sound loaded into a player tutorials for details.