AutoHotkey Community

It is currently May 27th, 2012, 12:18 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: October 23rd, 2008, 2:19 pm 
Offline

Joined: July 21st, 2006, 12:26 am
Posts: 223
[ description ]
BASSMOD for Chiptunes AHK >:D !

It gives AHK power to play XM, IT, S3M, MOD, MTM and UMX soundfiles in-the-fly with a tiny 33.5KB dll.

___
[ information ]
- Official WebSite

___
[ download ]
bassmod.ahk - The library
example.ahk - How to play a file
example2.ahk - No-compressed file, see below
example2.7z - LZMA Extreme Compression
-Notes: the 7z has 123KB, the sourcefile contained has 1.33 MB, audio length: >30min. If you compile it using upx, lzma will reduce it to aprox~ 126KB, leaving the compiled script around 200+126KB

k3ph wrote:
example2 was optmized, specially for new AHK 1.0.48, should load in less than some few seconds, its reported in quadcores it loads in less than 1 second!
the song had more than 30 min than previously expected D:!
the minilib contained in that example was extended and should show demonstrate how to make dll and songs embed using laszlo's binwrite :D


the latest example2 source compressed in lzma (overlay) results:
Code:
compression ratio = uncompressed size / compressed size
compression ratio = 1,361,989 bytes / 125,038 bytes
compression ratio = 10,8926006
therefore, almost 11:1


___
[ links ]
- bassmod (official link)


[ comments ]
-Thanks to Titan and Laszlo.

Enjoy!

[ keywords ]
bass, bassmod, modules

_________________
                                  [ profile | ahk.net | ahk.talk ]


Last edited by k3ph on February 16th, 2009, 12:42 am, edited 14 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 23rd, 2008, 5:09 pm 
:shock:

WOW I always wanted too play with this thank you so much.

:P :P :P :P :P :P :P :P :P :P :P


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 23rd, 2008, 5:27 pm 
Offline

Joined: January 12th, 2008, 7:45 pm
Posts: 131
HAHA! nice work... Example 2 is cooler as it's as small as a XM file...


Last edited by Ice_Tea on October 23rd, 2008, 5:34 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 23rd, 2008, 5:28 pm 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
your Init & Free funcs need to have the BaseModDLL as a global var.

_________________
Image
ʞɔпɟ əɥʇ ʇɐɥʍ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 23rd, 2008, 5:37 pm 
Offline

Joined: July 21st, 2006, 12:26 am
Posts: 223
oh yea, thanks for the info, forgot to revise that.
I'm still revising some functions which aren't retrieving correctly the data... I hope more feedbacks come to help me figure it out :)

_________________
                                  [ profile | ahk.net | ahk.talk ]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 23rd, 2008, 11:58 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
ahk finally meets demoscene :P

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2008, 12:05 pm 
Offline

Joined: June 4th, 2006, 2:04 pm
Posts: 176
Location: ::1
haha amazing k3ph :D


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 5th, 2009, 1:07 am 
Offline

Joined: July 21st, 2006, 12:26 am
Posts: 223
I've updated the library and the examples.

Now example2 has a better perfomance, runs all windows versions including vista and win7!

Now BASSMOD Library is a subproject of BASS Library.

_________________
                                  [ profile | ahk.net | ahk.talk ]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 9:44 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
With all the files that are associated with BASS, do you have them all packaged up somewhere that maybe I've just overlooked?

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 9:55 pm 
Offline

Joined: July 21st, 2006, 12:26 am
Posts: 223
SoggyDog wrote:
With all the files that are associated with BASS, do you have them all packaged up somewhere that maybe I've just overlooked?


BASSMOD Library is independant of BASS Library.
it is only a file called 'bassmod.ahk' dependant of 'BASSMOD.dll'

there is no need of package for it.

Please keep questions about BASS in BASS thread and leave this for BASSMOD, thank you.

_________________
                                  [ profile | ahk.net | ahk.talk ]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 10:05 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
k3ph wrote:
Please keep questions about BASS in BASS thread and leave this for BASSMOD, thank you.

For those of us that are unfamiliar with BASS/BASSMOD, it's a little difficult to tell the difference nor how to know what files go with what.

It's especially difficult when you yourself made the following statement... "Now BASSMOD Library is a subproject of BASS Library"

So, I can ask BASSMOD questions in the BASS thread but I can't ask a BASS question in the BASSMOD thread?

Really, I'm not being a jerk, but I honestly don't know the difference.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 10:15 pm 
Offline

Joined: July 21st, 2006, 12:26 am
Posts: 223
SoggyDog wrote:
Really, I'm not being a jerk, but I honestly don't know the difference.


As in the main post is tries to explains that, BASSMOD supports only few types of soundfiles and its an independent system from BASS.
As the name says: MOD, it supports only modules files (XM, IT, S3M, MOD, MTM and UMX soundfiles)

I understand, the names are pretty similar, even Ice_Tea made a confusion.

SoggyDog wrote:
So, I can ask BASSMOD questions in the BASS thread but I can't ask a BASS question in the BASSMOD thread?

Good question, yes you will be able to ask about BASSMOD there :] But BASS can load all BASSMOD file types!
Essentially BASS is a BASSMOD bigger version which supports streaming files, not only modules.

I've just moved it to move my attention focus, BASS will have more priority for now.
Does it makes sense now? Any questions feel free to make, I'll try reply.

_________________
                                  [ profile | ahk.net | ahk.talk ]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 10:22 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Thank you.
I think I got it.
BASS does everything BASSMOD does, but more.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2011, 8:21 am 
about example1, I cant get it to run...
"#include bassmod.ahk error at line 30 ; at left most character"


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You can post new topics in this forum
You can 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:
Powered by phpBB® Forum Software © phpBB Group