|
-
Dec 13th, 2009, 03:59 PM
#1
Thread Starter
Frenzied Member
Where would you store this information
Hi Guys,
I am working on a media player just to try out different things. Something like iTunes or Media Player using WPF.
The only issue I have is where to store the song objects. I intend to pull out the mp3 information and then set a file watcher on the library to sniff out changes but what I would like some feedback on is how you would store these objects.
As they have to be fast loading I was thinking in a database something like SS express. I had thought about serialisation but that would require a complete rewrite of the binary file for even one change to a song.
Any ideas on this?
-
Dec 14th, 2009, 06:54 AM
#2
Re: Where would you store this information
Why make a copy of the songs at all? Why not just do exactly what iTunes and Media Player do and just have your program 'link' to the MP3 files? If someone has 30 GB of music that they import into your program, if your program then copies all of these songs into a database then they have now got 60 GB missing from their hard disk for 30 GB of music.
-
Dec 14th, 2009, 07:19 AM
#3
Thread Starter
Frenzied Member
Re: Where would you store this information
That is what I intend to do but you have to have some place to store the link and tag information, I very much doubt that any media player stores only the link and just reads the tags as this would be very slow!
-
Dec 14th, 2009, 08:09 AM
#4
Re: Where would you store this information
Ah I see, sorry I thought you meant the entire file. Yeah I would just use a local SQL Express to store the meta data myself, whether that is the best way or not I dont know
-
Dec 14th, 2009, 08:51 AM
#5
Thread Starter
Frenzied Member
Re: Where would you store this information
I know the others use a flat file of some sorts but I think a DB is better suited and since it is only going to run on windows I may a well use a DB unless someone else objects!
-
Dec 14th, 2009, 10:43 AM
#6
Re: Where would you store this information
Well I was curious so I just did a bit of investigating and it looks like media player stores its database in C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Microsoft\Media Player\CurrentDatabase_360.wmdb
-
Dec 14th, 2009, 10:50 AM
#7
Thread Starter
Frenzied Member
Re: Where would you store this information
I noticed that but is it a flat file or an actual database?
-
Dec 14th, 2009, 11:15 AM
#8
Re: Where would you store this information
Dunnoooo, this thread might have some useful info in: http://www.forensicfocus.com/index.p...r=asc&start=10
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|