|
Playing sounds with ASND and AESND October 18, 2010 01:49PM | Registered: 16 years ago Posts: 25 |
|
Re: Playing sounds with ASND and AESND October 18, 2010 01:59PM | Admin Registered: 18 years ago Posts: 5,132 |
|
Re: Playing sounds with ASND and AESND October 18, 2010 04:04PM | Registered: 16 years ago Posts: 25 |
|
Re: Playing sounds with ASND and AESND October 18, 2010 04:59PM | Registered: 17 years ago Posts: 276 |
pFmt.sample_channel * pFmt.sample_count * pFmt.sample_byte
|
Re: Playing sounds with ASND and AESND October 18, 2010 08:18PM | Registered: 16 years ago Posts: 25 |
|
Re: Playing sounds with ASND and AESND October 18, 2010 08:37PM | Registered: 18 years ago Posts: 175 |
|
Re: Playing sounds with ASND and AESND October 18, 2010 08:40PM | Registered: 16 years ago Posts: 25 |
|
Re: Playing sounds with ASND and AESND October 18, 2010 08:41PM | Registered: 16 years ago Posts: 29 |
Quote
the_marioga
Hi, i do this but it doesnt hear, the wav file is PCM 16bit stereo
|
Re: Playing sounds with ASND and AESND October 18, 2010 08:43PM | Registered: 16 years ago Posts: 25 |
int wavPlayer(const char* file) {
pFmt.start=-1;
pFmt.end=-1;
void *buf = LoadPCMWav(file, &pFmt);
s32 voice = ASND_GetFirstUnusedVoice();
if (buf) {
if (ASND_SetVoice(voice, VOICE_STEREO_16BIT, pFmt.sample_rate,0, buf, pFmt.sample_channel * pFmt.sample_count * pFmt.sample_byte, 255, 255, NULL) == SND_OK) {
ASND_PauseVoice(voice, 0);
} else {
return 0;
}
} else {
return 0;
}
return 1;
}|
Re: Playing sounds with ASND and AESND October 23, 2010 02:39PM | Registered: 16 years ago Posts: 1 |
|
Re: Playing sounds with ASND and AESND October 23, 2010 06:25PM | Registered: 17 years ago Posts: 552 |
|
Re: Playing sounds with ASND and AESND October 23, 2010 07:03PM | Registered: 16 years ago Posts: 25 |
|
Re: Playing sounds with ASND and AESND October 23, 2010 08:48PM | Registered: 17 years ago Posts: 552 |
|
Re: Playing sounds with ASND and AESND October 25, 2010 09:04AM | Registered: 16 years ago Posts: 25 |
|
Re: Playing sounds with ASND and AESND October 25, 2010 03:24PM | Registered: 17 years ago Posts: 552 |