Load .MOD sound file

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
nbotero
Posts: 1
Joined: Fri May 28, 2010 5:32 am

Load .MOD sound file

Post by nbotero » Fri May 28, 2010 5:49 am

Hi everyone,

I am trying to load a sound file with .MOD extension and I dont know how to get it working. so far the code looks like this:

Code: Select all

on mouseUp
   play "D:\somesound.mod"
   wait until the sound is done
end mouseUp
any help well be appreciated!
thx...

Klaus
Posts: 14191
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Load .MOD sound file

Post by Klaus » Fri May 28, 2010 10:42 am

Hi nbotero,

the truth is: you can't play MOD files in rev.

See "play" in the docs (Rev Dictionary) to see what audio formats are supported in Rev:
Only uncompressed AIFF and WAVE files and the AU format.
Even using a player object (QuickTime) can't play a MOD file.

So you need to convert the file(s) somehow to a Rev (or QuickTime) compatible format.


Best

Klaus

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: Load .MOD sound file

Post by RRobert » Fri May 28, 2010 6:24 pm

You could use xmp and mikmod via the command line.

Robert

Post Reply