Link to home
Start Free TrialLog in
Avatar of icecbr
icecbr

asked on

A custom mp3 player

I want to create an simple mp3 player, but I want the files not to be mp3, to be converted some how to another format (not known) that only this player will play.

I just want my audio files not to be able to be played from other players.

How can I do it?

Can it been done using a simple file encryption/decryption?

I d prefer c# solution or something familiar.
Avatar of MerijnB
MerijnB
Flag of Netherlands image

How secure does this have to be / how much time are you willing to put in?
Avatar of icecbr
icecbr

ASKER

The player will be used for simple use, just to play some playlists, with classic features such as crossfading the songs and shuffling them.

The "converter" will be a seperate program of course...

I prefer to be very secure. Time is not a problem, I have 1-2 months and maybe more...

I'd suggest you simply encrypt normal mp3's.
You will probably spend the most time in decoding only little pieces in memory at a time and decoding these pieces, instead of the whole mp3 at once (insecure).
Avatar of icecbr

ASKER

could you give me more info plz?
Do you have previous experience with processing and playing audio?
he whole thing is too big to just get a working solution to everything, so you'll have to break it down a little into smaller parts. What part is it you don't understand?
Avatar of icecbr

ASKER

No I dont have such experiense, I d say I have general programmin experiense, you r right, lets start from the beggining...

Firstly I am a little confused about what to use, I took a look at codeproject and found some mp3 players...
There are some ways to do it, like using winmm.dll directx and others...
Which are best for low cpu usage, seeking and of course I need crossfading?

Which is a good method for crossfading? get length of playing file and 10sec before it ends start playing the next file?

If for start I make a player just playing the mp3 of a folder and crossfading them its half my work, then I ll just add more playlists, shuffle etc...

and finaly I think that a method like this: http://www.codeproject.com/KB/security/fileencryptdecrypt.aspx can achive the encoding issue....

thank you
ASKER CERTIFIED SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh, on crossfading.

Crossfading consists out of two parts:

1) Being able to fade in and fade out (simple a matter of doing a multiplication on the samples).
2) Being able to mix two different audio signals (simple a matter of adding up the samples).

Keep in mind (for the fading) that the dB scale is logarithmic and not linear.