[Openal-devel] Faster buffer model, and more random stuff
Sherief N. Farouk
sherief at mganin.com
Mon Mar 3 03:35:21 PST 2008
In the list were answer: your variant needs know internal data format
used in buffers (are you realy sure that buffers contains data in
provided format in all OpenAL implementations (current and possibly
future)?). Next, when you know internal format of buffer you should
convert your data to it. But it is possible that you do not know about
how to convert...
>>: For the love of whatever gods people worship, I need to make this point clear:
The proposed MapBuffer NEED NOT RETURN A POINTER TO THE ACTUAL BUFFER IN INTERNAL FORMAT.
MapBuffer returns a pointer to a location where enough data for the buffer may be put, and assumes it to be of the format specified at buffer creation time.
If the mapping is for reading, then the pointer points to a location containing data EQUIVALENT to the data in the buffer, in the format specified at buffer creation time.
IF AND ONLY IF the internal format is the same as the buffer format could an implementation return a pointer to the actual buffer data. This is a POSSIBLE optimization, and NOT a requirement.
- (the highly frustrated) Sherief
More information about the Openal-devel