realbasic-games
[Top] [All Lists]

Re: .mod files

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: .mod files
From: Josh Farquhar <farquhars at mac dot com>
Date: Thu, 10 Feb 2005 19:59:25 +1100
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <20050208180020 dot 6FB75704E04 at lists dot realsoftware dot com> <42092596 dot 1030906 at kwerkx dot com> <24607 dot 209 dot 174 dot 173 dot 194 dot 1107896548 dot squirrel at 209 dot 174 dot 173 dot 194> <8041b1367c48fec8e021c9155a28b4bb at chaoticbox dot com> <2dff7711124e0d7c872192977c6d8f15 at mac dot com> <f4057b7a1485216acdfc5601813dd1fc at chaoticbox dot com>


On 10/02/2005, at 7:09 PM, Frank Condello wrote:

Like I mentioned in a previous post, declares+libmikmod wouldn't be too difficult to get going. I realize you're a relative newbie but that could be a good learning exercise :)

Then again, if you grab my FMOD Wrappers: <http://developer.chaoticbox.com/> it can be as simple as this (error checking aside):

        f = GetFolderItem("mymusic.mod")
        myMusic = f.OpenAsFMODmusic
        myMusic.Play

Full documentation is available online: <http://developer.chaoticbox.com/documentation/fmodwrappers/>, check out the "Installation & Quickstart" and "FMODmusic Class" sections for more info.

Of course, you have to make sure FMOD's licensing fits your needs, but it's free for freeware, and I personally find the shareware licenses to be extremely reasonable, considering you get the same audio engine used in the likes of World of Warcraft and FarCry.

Frank.

OK, it looks like I have set that up properly so far, I have declared a property: BGMusic as FMODmusic in my main window (as it says to do in the documentation of the wrappers), and my code in the open event of the window is:

        Dim f as FolderItem

        f = GetFolderItem("deloreandriller.mod")
        BGMusic = f.OpenAsFMODMusic
        BGMusic.Play

But, when I try to run the program, I get this error:

        Application Launch Failure:
The application "My Application" could not be launched because of a shared library error: "<main><main><fmod><>"

The compiling seems to be done with no errors, so I assume it isn't my code that is wrong, but the error occurs when the application is trying to launch.

Any ideas?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>