vgmrips

The forum about vgm files
It is currently 2018-12-12, 5:51:51

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2018-03-02, 16:04:20 

Programmers Programmers
Offline

Joined: 2011-11-30, 17:26:44
Posts: 463
Location: Italy
So, someone on smspower wanted to know if it was possible to reverse a VGM file, e.g. to make it play backwards. After a first, clumsy attempt, in which I merely reversed the order of all the commands, resulting in something extremely broken, I later decided to waste time on something which probably isn't going to be ever used by anyone, but eh. Since it's related to VGM, I guess I can post it here as well.

Note that the version I am attaching here is "0.1.1" (opposed to the "0.1" on smspower), I did two minor improvements but it's basically the same. I'll align the versions later, hopefully with a "0.2" or something.

I'll release the source code soon, but it's completely uncommented for now and I think it would give everyone a headache.

UPDATE: see post below for version 0.1.2 complete with source code; it's still a complete mess, but I commented it today, so you might be able to read it, I don't promise you won't get a headache anyway, though.

As I said over there, please note:
  • PSG only
  • uncompressed VGM only
  • up to VGM version 1.50

Have fun! Or don't.

_________________
My webhost decided to shut down most of my webspace without a warning. If you find any broken Digilander link in any of my posts (basically all of them should be), please inform me.


Last edited by Tom on 2018-03-03, 1:55:54, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: 2018-03-02, 22:45:11 

Staff Staff
Programmers Programmers
Contributors Contributors
Ball Fondlers Ball Fondlers
Offline
User avatar

Joined: 2014-01-28, 5:51:54
Posts: 634
Tom wrote:
Have fun! Or don't.


You can't tell me what to do!

_________________
Follow me on twitter.

If you like this post, give it a big thumbs up and hit that subscribe button down below! And as always, thanks for reading, and see you next post.


Top
 Profile  
 
 Post subject:
PostPosted: 2018-03-03, 1:57:20 

Programmers Programmers
Offline

Joined: 2011-11-30, 17:26:44
Posts: 463
Location: Italy
Version 0.1.2 is attached to this post. I took my time to comment my code, which is still confusing, but at least it has comments everywhere now.

I doubt I'll ever work again on this.


Attachments:
File comment: Version 0.1.2 complete with source code
Vgm Reverse 012 (with source).rar [9.28 KiB]
Downloaded 51 times

_________________
My webhost decided to shut down most of my webspace without a warning. If you find any broken Digilander link in any of my posts (basically all of them should be), please inform me.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.129s | 14 Queries | GZIP : On ]