kitt3n
01-06-2005, 11:09 AM
I'd like to know how I can find the number of sources which are
available for openAL
In alSource.c they do sth like
{
ALCdevice *Device;
if ((Context->SourceCount + n) <= Device->MaxNoOfSources)
...
}
which is exactly what I want... unfortunately in the 'al.h/alc.h/alctypes.h/...
the structure 'ALCDevice' is not defined (empty struct)! After searching I
found it in another include-dir which apparently is not meant for public use
(in the file alMain.h).
I guess this is done to not expose the data for future updates...
Obviously I can just continue creating sources in a loop untill it fails
and then destroy them all again, but that's not really elegant either,
is it...
So is there a normal way to determine how many sources openAL
can handle?
tia
Roger
available for openAL
In alSource.c they do sth like
{
ALCdevice *Device;
if ((Context->SourceCount + n) <= Device->MaxNoOfSources)
...
}
which is exactly what I want... unfortunately in the 'al.h/alc.h/alctypes.h/...
the structure 'ALCDevice' is not defined (empty struct)! After searching I
found it in another include-dir which apparently is not meant for public use
(in the file alMain.h).
I guess this is done to not expose the data for future updates...
Obviously I can just continue creating sources in a loop untill it fails
and then destroy them all again, but that's not really elegant either,
is it...
So is there a normal way to determine how many sources openAL
can handle?
tia
Roger
