From e1db02baecf2c0b7cddcf4e86252017fd2b83635 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 17 Jun 2013 21:38:30 +0200 Subject: [PATCH] Added a sound playing if human player joins a match. --- .../plugins/sounds/OnPlayerJoinedTable.wav | Bin 0 -> 14004 bytes .../mage/client/dialog/TableWaitingDialog.java | 2 ++ .../java/mage/client/util/AudioManager.java | 17 ++++++++++++++--- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 Mage.Client/plugins/sounds/OnPlayerJoinedTable.wav diff --git a/Mage.Client/plugins/sounds/OnPlayerJoinedTable.wav b/Mage.Client/plugins/sounds/OnPlayerJoinedTable.wav new file mode 100644 index 0000000000000000000000000000000000000000..a8c11bb354eb35bc17337b558038c326f1043023 GIT binary patch literal 14004 zcmXZDcbFu{b>Ino`>js9(rLxxic76T(Sig?7-E1K0ONgoZ>qYhy1e%$E4{as<-M=2 z?ymOUO^+YU05k9)91RE(APJG8+(|2v(n;F;_4QZXnGx^3crPO3MZ_$QERoB@eA6B1FM@dYm&*TiA5Sb?jjp0ybv5*!6E>>g*C+&e`!5J>5rq^0| z*))Pg6GoLAPG;;~jcjY(|W%@Gwu z*Z27diE~D$IPSND(}7~5HgEs-!62(|^IC0JWzo;wBZzTSl6g-RlnXZqB^(ma3p zsNvqvXY?wF6n!|a9szH>bKtsoivDEZ+hKO10H3mTbY>5Be5a4=-h4x{XBJi@6f{iq za+~we=tQ9YBK4d)*M!}qCt#@mM_ z47iD~Gqq3v^nLRC;)(O@TES!(k08*&gL%p}guH+K!q=SHjANoZRP?hOGo-f9|JqxD z3(=d`MMJ+QM-k0zV601Z?T752^;PFkeXk{x-+kp)&Oc$;eXsn?)53hrda;j-ghUba zOsX3nUiA&M-kQ_(tK_(xulP;ly6X40C;!jU%>^>pUb#V9_$0(cqeuCiQF2Ow3vuoyqGItoUN7!+4Vl-_`$#58-DEBg;kWmAZL)_;7nGV z|LBJO-1GUj0Ie2C6rCL>bsT){|9!{Pb2Zu9-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75?uFXk!*%m;xUn?0CVX~dYYGr~!t@?L}>BOnlAi)kX{c9Ho)E<*+pGT?9o z`01uhgI++0^9&rK<0Ke~P}#ilW{(?56w^s23^Aa?;iF54cyFn;6SO!3ZJeWhf9rnPgJn36!CO4i6U1rf6j^ zii$@SWK@Bv(IALR={ObwFkDI;vb!7)y4(mKOL7WWN=9QOtWZ}R5e#8mJWc}<0_PLF zLbtLCF6V|gF)k?L2q8|x2t}|o7{-`rLV%PL8!9Fc3Q5Y*fES=xIZ9v*$;NmDr4;&B zfxne&FK$3*P3gAlNph8TGaZW)|DFuke6+)LLK@cH1 zkvjyDIe|hBSzH2!6`EEOm1ZfRv4Q~83QLVZ2&NFr)ZrzbRp4!f@WmC=2b! z$Xx~V=14?As}*utsiknn3h4Vga9IJ7MWxn5j92l6(ilbhAuLQN6feWk3ZF_ST(&}c zEATCWDkQSP-71R{1ycUqTVRTGMW6x+AHvMPW4Q(T5HnV&Uj?Q { if (count > 0) { if (current > count) { MageTray.getInstance().displayMessage("New player joined your game."); + AudioManager.playPlayerJoinedTable(); } else { MageTray.getInstance().displayMessage("A player left your game."); } diff --git a/Mage.Client/src/main/java/mage/client/util/AudioManager.java b/Mage.Client/src/main/java/mage/client/util/AudioManager.java index 252ab22a30..cfed0bd6b4 100644 --- a/Mage.Client/src/main/java/mage/client/util/AudioManager.java +++ b/Mage.Client/src/main/java/mage/client/util/AudioManager.java @@ -1,12 +1,15 @@ package mage.client.util; +import java.io.File; +import javax.sound.sampled.AudioFormat; +import javax.sound.sampled.AudioInputStream; +import javax.sound.sampled.AudioSystem; +import javax.sound.sampled.Clip; +import javax.sound.sampled.DataLine; import mage.client.constants.Constants; import mage.client.dialog.PreferencesDialog; import org.apache.log4j.Logger; -import javax.sound.sampled.*; -import java.io.File; - /** * Manager class for playing audio files. * @@ -42,6 +45,8 @@ public class AudioManager { audioManager.addArtifactClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnAddArtifact.wav"); audioManager.updateStackClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnStackNew.wav"); audioManager.onHover = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnHover.wav"); + + audioManager.playerJoinedTable = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnPlayerJoinedTable.wav"); } return audioManager; } @@ -114,6 +119,10 @@ public class AudioManager { checkAndPlayClip(getManager().onHover); } + public static void playPlayerJoinedTable() { + checkAndPlayClip(getManager().playerJoinedTable); + } + private static void checkAndPlayClip(Clip clip) { try { if (clip != null) { @@ -175,4 +184,6 @@ public class AudioManager { private Clip addArtifactClip = null; private Clip updateStackClip = null; private Clip onHover = null; + + private Clip playerJoinedTable = null; }