Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents  
 
How to retrieve information about loaded songs 
 
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 GetSoundDuration and/or GetFormattedSoundDuration methods. 
  • Detect the initial and final portions of silence through a call to the RequestSoundSilenceDetection method: 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 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: 
  • GetMp3StreamTypeLevel 
  • GetMp3StreamTypeLayer 
  • GetMp3StreamTypeBitRate 
  • GetMp3StreamTypeMode 
  • GetMp3Frames 
  •  
    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. 
  •  
    Tags contents can be obtained through a set of dedicated methods: see the How to retrieve TAG information section for details. 
     
     
     
     
     
     
     
     
    Copyright © 2001-2008 MultiMedia Soft 
    Return to Table of contents