From realnc at gmail.com Sun Apr 22 19:38:02 2012
From: realnc at gmail.com (Nikos Chantziaras)
Date: Mon, 23 Apr 2012 02:38:02 +0300
Subject: [sdlsound] Sound_GetDuration() backport to stable-1.0
Message-ID: <4F94965A.3060508@gmail.com>
I was previously using SDL_sound for audio decoding in my apps and
simply used Sound_DecodeAll() for the job. That meant I could calculate
the duration easily. This was a horrible memory waster though (playing
a few layered tracks simultaneously would eat up anywhere between 100
and 300MB RAM.)
So I switched to Sound_Decode(). However, being able to tell the
duration of the sample is critical. Since SDL_sound might need some
time for a proper release, I ported Sound_DecodeAll() from the
development branch to the stable-1.0 branch. It's a backport of these:
http://hg.icculus.org/icculus/SDL_sound/rev/c66080364dff
http://hg.icculus.org/icculus/SDL_sound/rev/3e705c9180e5
I am attaching the patch. If possible, please push it to stable-1.0.
Hopefully we will see a 1.0.4 release soon for distros to pick up?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample_duration.patch
Type: text/x-patch
Size: 25310 bytes
Desc: not available
URL:
From realnc at gmail.com Sun Apr 22 19:48:29 2012
From: realnc at gmail.com (Nikos Chantziaras)
Date: Mon, 23 Apr 2012 02:48:29 +0300
Subject: [sdlsound] Sound_GetDuration() backport to stable-1.0
In-Reply-To: <4F94965A.3060508@gmail.com>
References: <4F94965A.3060508@gmail.com>
Message-ID: <4F9498CD.5090904@gmail.com>
On 23/04/12 02:38, Nikos Chantziaras wrote:
> I ported Sound_DecodeAll() from the development
> branch to the stable-1.0 branch.
I figured it's probably a good idea to put this on the bug tracker, so
here goes:
http://bugzilla.libsdl.org/show_bug.cgi?id=1481