I want a simple mp3 player for Delphi using BASS SDK (freeware at [url removed, login to view]). There already a good example of Bass Mp3 player you can download source code here:
[url removed, login to view]
But I want two extra features:
1) I want to fade out and fade in between songs. When playing a list of 2 mp3s, when the 1st song is ending it will fade out and fade in at the same time the other song. The duration of fade in/fade out must be configurable.
2) I want to be able to detect the silence at the start and the end of the file and make sure fading will have no gaps (silence). For example if the mp3 file is 4:00 and the song is really ends at 3:56, fade out must be done at 3:56 not at 4:00. There are two ways to do this. You can automatically check the silence during runtime everytime the mp3 plays or another way is to make this once, for example have a button "scan mp3s" and this will scan when the mp3 ends and it will save the information on a file so it will mix at this position.
There are many examples on their forum but on other languages like C#. You can use your knowledge to port in delphi. Example at [url removed, login to view] search for "silence detection" results like: [url removed, login to view];topicseen#msg116717
I forgot to mention I want the file to be loaded by Memory (TMemoryStream) instead of file.