[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another status report
From: |
Ingo Ruhnke |
Subject: |
Re: Another status report |
Date: |
06 Apr 2003 19:50:59 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Gervase Lam <address@hidden> writes:
> How sound management was changed recently by introducing the SoundResMgr
> class. Within it is the line:
>
> CL_SoundBuffer* buffer = new CL_SoundBuffer (new CL_Sample(filename,
> NULL), true);
>
> Where or what deletes buffer? When does it happen?
It doesn't get deleted, it stays until the application exits, but
since we have only a handfull of sounds, that isn't a problem. Point
of SoundResMgr was just to share the sound effects, before that the
buffer was newly allocated for every sound effect and filling so the
memory with dozen copies of the same sound.
--
WWW: http://pingus.seul.org/~grumbel/
Games: http://pingus.seul.org/~grumbel/gamedesigns/
JabberID: address@hidden
ICQ: 59461927