Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello,
I am new to Brew. Who could please tell me what the difference is between playing sound using buffer and playing sound directly from files?

Also, I am not clear about the types of callback functions invoked by the ISoundPlayer Interface. (i.e AEE_SOUNDPLAYER_PLAY_CB, AEE_SOUNDPLAYER_STATUS_CB, AEE_SOUNDPLAYER_TIME_CB ,
AEE_SOUNDPLAYER_SOUND_CB , AEE_SOUNDPLAYER_VOLUME_CB)

Is AEE_SOUNDPLAYER_PLAY_CB callback function only invoked by ISOUNDPLAYER_Play() ? What type of callback function will ISOUNDPLAYER_Stop() invoke?

Thanks a lot!
gdw

playing directly from files, you will need a separate file with the sound you want to play, it will open the file and play it
from buffer you can alocate the sound as you like and pass a pointer to the function

playing directly from files, you will need a separate file with the sound you want to play, it will open the file and play it
from buffer you can alocate the sound as you like and pass a pointer to the function

Is there any difference in performance? like, is playing sound from files slower than playing using buffer?

Is there any difference in performance? like, is playing sound from files slower than playing using buffer?

Well, not really especially because the way I have seen it, even if you play sound from a file it is actually cached by BREW as well, so you're essentially looking at the same thing.

Well, not really especially because the way I have seen it, even if you play sound from a file it is actually cached by BREW as well, so you're essentially looking at the same thing.

Thanks a lot!

Thanks a lot!