Advertisement

audiere? how to use it?

Started by August 14, 2005 09:12 AM
2 comments, last by suliman 19 years, 4 months ago
Hi I've searched for weeks, but noone seemes to know it? I can only create individual sounds and load them at the same time as I create the "holder" for the sound (as the reference teaches us). I wanna do arrays, something like: suitalbeAudiereSoundClass walksound[100]; suitalbeAudiereSoundClass menusound[100]; walksound[0]->loadSample("spagetti.wav"); walksound[1]->loadSample("cucumber.wav"); Is it possible? How else can I add large numbers of sounds or sounds belonging to a certain class etc and then load them somewhere else... Would appriciate any help tremendously Erik, Sweden
Im not familiar with Audiere...does it have a forum of users somewhere who could help you? Can you talk with the developers?
Advertisement
audiere::OutputStreamPtr audio[2];

audio[0] = audiere::OpenSound(audiereDevice, filename, isStreaming);
audio[1] = audiere::OpenSound(audiereDevice, filename, isStreaming);

I wouldn't recommend loading 200 sounds at once though, that's a lot of memory.
Thanks Cosman, you cannot beleive how many people ive been bugging about that... It wasn't hard or anything but I couldn't figure out how to write it. A shame it's not in the tutorial, couldn't figure out how to write it in this manner. Now it's pretty crear even to me.

So which one is faster/better for effects or for music:
OutputStreamPtr
SoundEffectPtr

I dont really understand the diffrences. Any clear answers here? Are there more types of "soundHolders"?

Suliman

This topic is closed to new replies.

Advertisement