Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 29th August 2006, 15:26   #1
alfinator
Junior Member
 
Join Date: Aug 2006
Posts: 2
decrypting mp3 files @ runtime [problem]

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
alfinator is offline   Reply With Quote
Old 30th August 2006, 16:44   #2
gonemad
Member
 
Join Date: May 2006
Posts: 52
interesting idea.. why do you need to encrypt your mp3 files tho
gonemad is offline   Reply With Quote
Old 3rd September 2006, 11:32   #3
alfinator
Junior Member
 
Join Date: Aug 2006
Posts: 2
why shouldnt i? :]
can ne1 help me?
tnx in advance
alfinator is offline   Reply With Quote
Old 3rd September 2006, 16:48   #4
Benski
Ben Allison
Lead Developer
Winamp Dev Team
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Ashburn, VA
Posts: 1,018
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.

However, if you want "on-the-fly" decryption, you'll pretty much have to write your own MP3 decoding plugin
Benski is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump