Copyright © 2001-2018 MultiMedia Soft

How to retrieve information about loaded songs

Previous pageReturn to chapter overviewNext page

Active 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 SoundDurationGet and/or SoundDurationStringGet methods.
Detect the initial and final silent portions; see the How to detect silent portions of sound files tutorial for details.
Force the control to retrieve information below, that could require some more CPU tick, using the ReadSoundInfo method
Retrieve the song bitrate through the GetFrequency method
Retrieve the number of channels of the loaded song through the GetChannels method.
If the loaded song is in MP3 format, use one of the following methods in order to get detailed information:







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 ReadSoundInfo 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.