Cara, tem o método Stop tbm..
Mas não adianta já tentei colocar
stopmusica()
carregaoutramusica()
tocaroutramusica()
e não funciona, já fiz o teste
Em 3 de maio de 2013 21:28, Carmelo Alzate <carmelo2005@gmail.com> escreveu:
Cara, acho que assim como vc tem carregaMusica e reproduzMusica...precisa ter o metodo para detê-la
--2013/5/3 Márcio Fornari <marciofornari@gmail.com>
--Pessoal, tenho um jogo onde tem os estadosAbertura, Menu, Fase1, Fase2 e Fase3, FaseCompleta, GameOverPara cada estado eu queria colocar uma música diferente. Porém o meu aplicativo pega a primeira música que achar e toca ela infinitamente, ou seja, não para mais e tbm nem toca as outras músicas conforme troca o Estado. Alguém sabe como fazer isso funcionar???
if (iEstado == ABERTURA) { abertura(); CGerenteSons.vrMusica.carregaMusica("abertura.mp3",true); CGerenteSons.vrMusica.reproduzMusica(); } else if (iEstado == MENU) { CGerenteSons.vrMusica.carregaMusica("menu.mp3",true); CGerenteSons.vrMusica.reproduzMusica(); menu(); } else if (iEstado == JOGO) { CGerenteSons.vrMusica.carregaMusica("fase1.mp3",true); CGerenteSons.vrMusica.reproduzMusica(); jogo(vrOpenGL); } else if (iEstado == AJUDA) { ajuda(); } else if (iEstado == FASE2) { CGerenteSons.vrMusica.carregaMusica("fase2.mp3",true); CGerenteSons.vrMusica.reproduzMusica(); fase2(vrOpenGL); } else if (iEstado == FASE3) { CGerenteSons.vrMusica.carregaMusica("fase3.mp3",true); CGerenteSons.vrMusica.reproduzMusica(); fase3(vrOpenGL); } else if (iEstado == PASSOUFASE2) { CGerenteSons.vrMusica.carregaMusica("fasecompleta.mp3",true); CGerenteSons.vrMusica.reproduzMusica(); passouFase2(); } else if (iEstado == PASSOUFASE3) { CGerenteSons.vrMusica.carregaMusica("fasecompleta.mp3",true); CGerenteSons.vrMusica.reproduzMusica(); passouFase3(); } else if (iEstado == FIMJOGO) { CGerenteSons.vrMusica.carregaMusica("gameover.mp3",true); CGerenteSons.vrMusica.reproduzMusica(); TerminouJogo(); }--
............
.Márcio Fornari
.Bacharel em Sistemas de Informação
.Contatos pelo Telefone: (49)8814 - 3378
.ou pelo e-mail: marciofornari@gmail.com
.Msn: marciof.gd@hotmail.com
..........................................................................
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
José Carmelo Alzate
Estudiante Ingenieria de Sistemas (UdeA)
Estudiante Intercambista Engenharia da Computaçao e Sistemas Digitais Universidad de Sao Paulo (USP)
Antes de imprimir este mensaje, asegúrese de que es necesario. Proteger el medio ambiente está también en su mano.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
............
.Márcio Fornari
.Bacharel em Sistemas de Informação
.Contatos pelo Telefone: (49)8814 - 3378
.ou pelo e-mail: marciofornari@gmail.com
.Msn: marciof.gd@hotmail.com
..........................................................................
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário