Mod Archive Forums

Community => Project / Coder's Corner => Topic started by: tritonfx on April 10, 2010, 22:33:49

Title: How does the online player work?
Post by: tritonfx on April 10, 2010, 22:33:49
Hey guys, I was going to make my own modarchive streamer but lucked out whe. I found out that samples are stored in the end of a .mod file so I would have to download the entire file before playing it.  I was wondering if the online player downloaded it completely first?
Title: Re: How does the online player work?
Post by: Saga Musix on April 10, 2010, 23:41:05
1) Before leeching tunes automatically from the archive, ask for permission first.
2) Get familiar with the ProTracker .MOD format (or .XM, or .S3M, or .IT, or whatever you want to play). You would see then pretty quickly that you cannot "stream" module files, i.e. you need the whole file to play it, because samples and patterns are essential for that.
Title: Re: How does the online player work?
Post by: tritonfx on April 11, 2010, 01:25:39
I wasnt leeching from MA.  I used a local zipped file to test if downloading would work because conceptually itd be similar to opening a file as I was testing on an emulator. This was meant for the ds.  I used this as a proof of concept and was going to apply for an api key if it worked but it didnt.
Title: Re: How does the online player work?
Post by: Saga Musix on April 11, 2010, 12:53:16
Well, aren't there mod players for the DS already?
Title: Re: How does the online player work?
Post by: tritonfx on April 12, 2010, 04:04:33
Well, aren't there mod players for the DS already?
None that download :(
Title: Re: How does the online player work?
Post by: Saga Musix on April 12, 2010, 08:56:12
well, yeah, that's what you call abstraction. :P one part of the program is a music playing library (which already exists) and the other part is a downloader for example. those parts should be developed independently. the music part has already been done for you, but i really cannot help you with the downloading part; basically, you need to download the files somehow, decompress them and pass them to the module player.
Title: Re: How does the online player work?
Post by: tritonfx on April 13, 2010, 00:14:56
I was working a bit on it today since I had nothing else to do and got pretty good results ... except the dswifi library is really slow. Tops out at around 10 kilobytes per second making anything larger than 100 kB or so a long wait to download. :(