Is anyone able to advise please?
I'm just reserving samples in my code.
At present I've done:
But actually I'm probably going to need more than that, but the actual number is unclear now I thought I could simply be greedy and reserve all the samples I could get:
reservedSamples = 0;
i = 100;
success = false;
success = al_reserve_samples(
i -= 1;
success == false ||
i > 0);
12 printf("Sorry, can't play any sounds today!");
But I suspect there a many credible reasons not to do this.
Alternatively, can you call al_reserve_samples(n) multiple successful times? If so does it reserve n additional samples, or does it simply adjust the reserved sample count?
What do you think is the best way to go?