Jump to content

XM music


Recommended Posts

man it has bin long since i was last here :)

good to see you guys.

anyway here is my little question. u guys sure have ones seen a crack or keygen that had such a NICE tune running with it.

well i found out those are XM files there playing but i can't find anyway to use those damn thingys with autoit.

soo is there a DLL or a way to let autoit play those XM files, WITHOUT external exe's.

to give u a site wich HAS those nice tunes: CHIPTUNES or Dualtrax

i hope u can help me.

greetz ZeroZ

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

man, stop spamming, yes i tryed the link myself.

ya think imma NOOB or something ??

search my posts, i'm NO noob

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

well i found out that winamp can play this type of songs, so maby MCI will work, testing it today.

(now i only need to find my old mediaplayer, should be here somewhere XD )

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

found the player and tested

but :) XM isn't playable with MCI so i think i really need an DLL.

anyone found something yet ?

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

found the player and tested

but :) XM isn't playable with MCI so i think i really need an DLL.

anyone found something yet ?

What is an XM file? Is that a tracked-wave-sample file, like MOD or S3M? AFAIK, Windows doesn't give much support to tracked files, other than just the General MIDI emulation.

What libraries have you tried so far?

EDIT

Here is how to read an XM file:

http://www.textfiles.com/programming/FORMATS/xmformat.mus

And take a look at the XM-EXE program at Unforseen Developments. It creates an executable binary that is a player + XM file(s) all bundled into a single exe file. Included in that package is xm-exe.dll, which, according to the manual, has the player code in it.

Edited by blindwig
Link to comment
Share on other sites

yo i found that one to, but since i'm no good with dll's i would love to have some help with it.

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

mm, does anyone knows a FREE tool to look into an DLL ??

i wanna see if i can use the XM-EXE dll to play the music

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

UPDATE :)

i found a DLL that should be able todo this kinda thing, it has examples for C++ and VB and others, but i dunno how todo this in AUTOIT

could somebody help me out or give a little example ??

website: www.un4seen.com/bassmod.html <-- find it here

Edited by zeroZshadow
*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

here is a program to view dll functions http://www.nirsoft.net/utils/dll_export_viewer.html

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Link to comment
Share on other sites

Nice and very simple dll, used it alot together with Apollo37, but not tried to work directly. It was a half hour of pleasure to write this simple player :)

#include <GUIConstants.au3>

Dim $music_handle = -1
$bassdll = DllOpen("bass.dll")
$ret = DllCall($bassdll, "int", "BASS_Init", "int", -1, _
                                             "int", 44100, _
                                             "int", 0, _
                                             "hwnd", 0, _
                                             "ptr", 0)
If not $ret[0] then 
    MsgBox(0, "Error", 'Error initializing audio!');
    Exit
Endif   

$GUI = GUICreate("Simplest BASS player :)", 310, 77, 192, 125)
$Input1 = GUICtrlCreateInput("", 8, 8, 265, 21)
$Button1 = GUICtrlCreateButton("...", 272, 8, 27, 22, 0)
$Button2 = GUICtrlCreateButton("|>", 8, 40, 27, 25, 0)
$Button3 = GUICtrlCreateButton("||", 40, 40, 27, 25, 0)
GUISetState(@SW_SHOW)

While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button1
        $sPath = FileOpenDialog ( "Îêðûòü ñ÷¸ò:", @ScriptDir, "Tracker music (*.xm;*.mod;*.s3m;*.it;*.mtm;*.mo3)|All files (*.*)")
        If not ($sPath = "") Then 
            GUICtrlSetData($Input1, $sPath)
            $fName = DllStructCreate("char[255]")
            DllStructSetData($fName, 1, $sPath)
            $ret = DllCall($bassdll, "int", "BASS_MusicLoad", "int", false, _
                                                    "ptr", DllStructGetPtr($fName), _
                                                    "int", 0, _
                                                    "int", 0, _
                                                    "int", 0x200, _
                                                    "int", 0)
            $music_handle = $ret[0]
            $fName = 0
        Endif
    Case $msg = $Button2        
        DllCall($bassdll, "int", "BASS_ChannelPlay", "int", $music_handle, "int", 0)
    Case $msg = $Button3
        DllCall($bassdll, "int", "BASS_ChannelStop", "int", $music_handle)
    EndSelect
WEnd

Func OnAutoItExit ( )
    DllCall($bassdll, "int", "BASS_MusicFree", "int", $music_handle)
    DllClose($bassdll)
EndFunc
Edited by Lazycat
Link to comment
Share on other sites

thanks man, but i'm getting error's here

he doesn't know the function "DllStructCreate" and "DllStructSetData" and "DllStructGetPtr"

and when running it also says the $ret[0] aint good because it aint an array.

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

mmm it also seems u where using bass, not bassmod (wich is only for mod files like: XM, mod, etc)

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

yaay fixed it all by myself XD i'll post a player tomorrow if u help me remeber XD (just bump it or something)

its late here, see ya

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...