Playing mp3's

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

Consilium
Contributing Member
Contributing Member
Posts: 100
Joined: Wed Oct 02, 2002 10:42 pm

Playing mp3's

Post by Consilium » Thu Oct 09, 2003 3:20 am

Not sure if this belongs here but this is some code to play mp3's...
All credit goes to Alisandra.

Code: Select all

sub InitSounds 
  /mp3 clear 

  | Jungle-Windows-Start.wav -- 5 seconds 
  /mp3 add x:\Sounds\Alert.wav 

  | -- 3 seconds 
  /mp3 add x:\Sounds\Danger.wav 

  | Musica-Asterisk.wav -- 1.5 seconds 
  /mp3 add x:\Sounds\Message.wav 

  | Utopia-Asterisk.wav -- 2 seconds? 
  /mp3 add x:\Sounds\Utopia-Asterisk.wav 
    
  /return 


sub PlaySound 
  /if @Param0=="Tell" { 
    /mp3 play 3 
    /delay 15 
    /mp3 stop 
  } else /if @Param0=="Tell2" { 
    /mp3 play 4 
    /delay 2s 
    /mp3 stop 
  } else /if @Param0=="Alert" { 
    /mp3 play 1 
    /delay 5s 
    /mp3 stop 
  } else /if @Param0=="Danger" { 
    /mp3 play 2 
    /delay 3s 
    /mp3 stop 
  } 
  
  /return
-SH
+Student
digitalsavior.com

Mutter
a ghoul
a ghoul
Posts: 105
Joined: Sat Nov 16, 2002 1:09 pm

hmmm

Post by Mutter » Wed Oct 29, 2003 4:12 pm

Good idea! But if Macroquest had a beep any HUMAN could hear...
lol
the beep is enough to drive dogs nuts, but needs a VOLUME!

Consilium
Contributing Member
Contributing Member
Posts: 100
Joined: Wed Oct 02, 2002 10:42 pm

Too true

Post by Consilium » Wed Oct 29, 2003 4:45 pm

Well that is true that the beep is a bit lame. This is just a system beep which like your bios error beeps uses your standard internal motherboard speaker.

It would be great if someone would detail here about how to change this beep or reroute it to your sound card. I know this can be done but I unfortunatly haven't researched it yet.

I like running several instances of MQ on one computer and to enable sound for each one for the playing of mp3 alerts isn't practical when it comes to system performance.

Anyone familiar with this?
-SH
+Student
digitalsavior.com