PDA

View Full Version : decrypting mp3 files @ runtime [problem]


alfinator
29th August 2006, 15:26
How can i use the sdk to code a plugin that decrypts mp3 files _before_ they are played and encrypts them again after they're skipped / stopped?
Sorry dudes for this stupid question but i'm not into this plugin coding, i just coded a file encryption application and i want to encrypt all my mp3's and with _this_ winamp plugin they will be decrypted at runtime.

Is that possible?

cheers, alf

gonemad
30th August 2006, 16:44
interesting idea.. why do you need to encrypt your mp3 files tho

alfinator
3rd September 2006, 11:32
why shouldnt i? :]
can ne1 help me?
tnx in advance

Benski
3rd September 2006, 16:48
You could write an input plugin which "chains" in_mp3. That is, your plugin takes over playback of MP3 files, but all it does is decrypt the file to a temporary file, pass control over to in_mp3 (and deletes the temporary file when playback stops). DrO uses a very similiar technique for his in_zip plugin (http://forums.winamp.com/showthread.php?s=&threadid=202525).

However, if you want "on-the-fly" decryption, you'll pretty much have to write your own MP3 decoding plugin :(