[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netPanzer-Devel] SDLSound with 8 channels
From: |
Ivo Danihelka |
Subject: |
[netPanzer-Devel] SDLSound with 8 channels |
Date: |
Thu, 18 Sep 2003 21:58:47 +0200 |
Is 8 sound channels enough?
SDLSound has now feature, that when Mix_PlayChannel() fails,
will try allocate more channels.
Should I turn this off?
Code:
---------
if (Mix_PlayChannel(-1, chunk, 0) == -1) {
Mix_AllocateChannels(8 + Mix_AllocateChannels(-1));
if (Mix_PlayChannel(-1, chunk, 0) == -1) {
LOG (("Couldn't play sound '%s': %s", name,
Mix_GetError()));
}
}
---------
--
Ivo Danihelka
- [netPanzer-Devel] SDLSound with 8 channels,
Ivo Danihelka <=