Re: Source Size

Chris Robinson <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
On Tuesday, November 09, 2010 6:35:06 pm Kip Warner wrote:
> Is there a way to query how much memory a source is using? I just want
> the size of the source, and not that of its attached buffer, if any.

Hi,

There isn't, though I'm not sure how such a size would be calculated, either. 
It could be that a source has allocated both local and remote memory.. it 
could also be that the allocation size changes (I could imagine a scenario 
where a streaming source allocates a bit of remote memory to stream buffers 
through, where a static source may not). I can't imagine the size of a source 
being that much compared to actual buffer sample data, though.

Also FWIW, the AL_SIZE property of a buffer only includes the sample data. I 
don't think the actual size used by any given object type is readable 
anywhere.
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.