目录结构调整
This commit is contained in:
49
codes/games/client/Projects/majiang_jx/js/flow/sound.js
Normal file
49
codes/games/client/Projects/majiang_jx/js/flow/sound.js
Normal file
@@ -0,0 +1,49 @@
|
||||
d.bet_sound = function (sound) {
|
||||
var sound = d.c(sound);
|
||||
var sound_num = sound[1];
|
||||
var seat = sound[0];
|
||||
if (sound_num != undefined && String(sound_num).length > 0 && sound_num > -1) {
|
||||
//if(seat!=C_Player.seat || seat==C_Player.seat && sound_num==101)
|
||||
{
|
||||
sound_num = parseInt(sound_num);
|
||||
// var t = new Date().getTime() + d.time_dif;
|
||||
// var t0 = sound[2];
|
||||
// if (t - t0 > 8 * 1000 && d.replay == 0) {
|
||||
// return;
|
||||
// }
|
||||
//d.wav[0]=22;//发出声音的最大时间=0之后播其他声音,以免2个声音同时播
|
||||
var sex = Desk.PlayerList[seat].sex || 1;//1男2女
|
||||
if(sex==0){
|
||||
sex=2;
|
||||
}
|
||||
if (sound_num < 60) {
|
||||
var sid = 60 + (sex - 1) * 60 + sound_num;
|
||||
}
|
||||
else {
|
||||
var sid = 50 + (sex - 1) * 60 + (sound_num - 100);
|
||||
}
|
||||
if (sound_num == 38) {
|
||||
var sid = (sex - 1) * 10 + sound_num;
|
||||
}
|
||||
var tou = "00";
|
||||
if (String(sid).length == 2) {
|
||||
tou = "000";
|
||||
}
|
||||
else if (String(sid).length == 3) {
|
||||
tou = "00";
|
||||
}
|
||||
if (!sid) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(Utl.ReadData(Utl.Config.sound)==1){
|
||||
GameData.isRecord=false;
|
||||
//play_wav(tou + sid + ".mp3");
|
||||
Utl.playSound(tou + sid + ".mp3");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user