start && end > -1) { if (start > -1) { var res = data.substring(start, end); start = res.indexOf('>') + 1; res = res.substring(start); if (res.length != 0) { eval(res); } } cursor = end + 1; } } } //]]>
|
Using Modplay and playing sounds at the same time March 18, 2011 12:01AM | Registered: 2 years ago Posts: 99 |
|
Re: Using Modplay and playing sounds at the same time March 18, 2011 06:34PM | Registered: 2 years ago Posts: 99 |
|
Re: Using Modplay and playing sounds at the same time March 18, 2011 11:14PM | Registered: 4 years ago Posts: 40 |
|
Re: Using Modplay and playing sounds at the same time March 19, 2011 10:53PM | Registered: 2 years ago Posts: 99 |
|
Re: Using Modplay and playing sounds at the same time March 20, 2011 04:54PM | Registered: 4 years ago Posts: 40 |
AESND_Init(NULL); MODPlay_Init(&music); MODPlay_SetMOD(&music, mod_bg); MODPlay_Start(&music); AESND_Pause(0); channel=AESND_AllocateVoice(NULL); AESND_SetVoiceVolume(channel,48,48); (...) AESND_PlayVoice(channel,VOICE_MONO16,(void*)snd_beep,LEN_SND_BEEP*2,44100,0,0);
|
Re: Using Modplay and playing sounds at the same time March 21, 2011 04:30PM | Registered: 2 years ago Posts: 99 |
|
Re: Using Modplay and playing sounds at the same time March 21, 2011 05:17PM | Registered: 2 years ago Posts: 99 |
|
Re: Using Modplay and playing sounds at the same time March 21, 2011 10:52PM | Registered: 4 years ago Posts: 274 |
|
Re: Using Modplay and playing sounds at the same time March 22, 2011 11:39AM | Registered: 4 years ago Posts: 40 |
Quote:Titmouse
BTW Chris, how did you work out the details like passing NULL to AESND_AllocateVoice, think I'm missing some cool resources somewhere!
|
Re: Using Modplay and playing sounds at the same time March 22, 2011 05:04PM | Registered: 2 years ago Posts: 99 |