Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: How does the online player work?  (Read 8164 times)

0 Members and 1 Guest are viewing this topic.

tritonfx

  • New User
  • Offline Offline
  • Posts: 6
    • View Profile
How does the online player work?
« 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?
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: How does the online player work?
« Reply #1 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.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

tritonfx

  • New User
  • Offline Offline
  • Posts: 6
    • View Profile
Re: How does the online player work?
« Reply #2 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.
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: How does the online player work?
« Reply #3 on: April 11, 2010, 12:53:16 »

Well, aren't there mod players for the DS already?
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

tritonfx

  • New User
  • Offline Offline
  • Posts: 6
    • View Profile
Re: How does the online player work?
« Reply #4 on: April 12, 2010, 04:04:33 »

Well, aren't there mod players for the DS already?
None that download :(
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: How does the online player work?
« Reply #5 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.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

tritonfx

  • New User
  • Offline Offline
  • Posts: 6
    • View Profile
Re: How does the online player work?
« Reply #6 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. :(
Logged
Pages: [1]   Go Up