![]() |
|
Simultaneous sample limit? |
Trent Gamblin
Member #261
April 2000
![]() |
Is there a limit on the number of samples that can be played at the same time? I'm using Linux and have tried the OSS and ALSA drivers but I seem to only be able to play 8 samples at a time. In the following code the "blast" sample cannot be heard unless I play only 7 or less "bolt" samples:
They are all getting a unique voice. And as you can see I'm playing the bolt sample at a much lower volume. I haven't tried this on Windows. Any advice or information would be appreciated. Thanks.
|
Kitty Cat
Member #2,815
October 2002
![]() |
reserve_voices -- |
Trent Gamblin
Member #261
April 2000
![]() |
Ah, thanks very much. Now I have another question.
|
Matt Smith
Member #783
November 2000
|
It is/was common to use powers of 2, up to 64 as a reasonable max. This was so the old mixer could shift the values down and guarantee the accumulated values couldn't overflow. There has been a lot of experimental work in compressing the dynamic range of the output (in DUMB, which has been the prototype for the new mixer) so the quality may improve and the restrictions may disappear completely. The short answer is that 16 voices is fine. |
Trent Gamblin
Member #261
April 2000
![]() |
Great. I'll bump it up to 32 and keep in mind that I could use 64 in the future. Thanks. [edit]
|
|