Quick Links   dBpoweramp [Music Converter,  Audio PlayerCD Writer]    Sveta Portable Audio,    Codec Central,    Register dBpoweramp,     Spoons Audio Guide

 

   

Developer Corner - Writing a Compression Dll

 
A compression Dll adds extra Convert To options to dBpoweramp Music Converter (dMC).
Example Compression DLL (48KB) This example writes the received PCM wave data straight out to disk. It also has an example button on it's options page. Written in Visual C++ V6.
 
   

Spoons Tips

 
The name given to your compression DLL (i.e. Example Converter.dll) is the one displayed by dMC's Convert To list.

A Compression DLL can have a small options page, this page is attached to dMC's main option page with a call to ShowConfigBit(HWND OnForm), note as it becomes a child on my options window RemoveConfigBit never needs to be implemented. Any options set on your small option page should be saved (perhaps to registry) on the Change events, as you will not be notified when your option page has been destroyed.

If you are wondering how Tag information is set, it is not handled in any way by compression DLLs, the input DLL is used to set / get Tag info, so if you are implementing a Mp3 / WMA compression DLL all that is already handled. View the Input decoder example for information on implementing ID Tag.

I have written my example using C classes, there is no particular need for this, just good coding practice :).