apparently it does want to be this way

This commit is contained in:
Glenn Maynard
2003-02-14 23:03:14 +00:00
parent dd06dddc75
commit 0d5cd0bc0f
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ void SoundMixBuffer::write(const Sint16 *buf, unsigned size)
{
if(mixbuf.size() < size)
{
basic_string<Sint32> empty(size-mixbuf.size(), 0);
basic_string<Sint32, char_traits_Sint32> empty(size-mixbuf.size(), 0);
mixbuf.insert(mixbuf.end(), empty.begin(), empty.end());
}
+1 -1
View File
@@ -68,7 +68,7 @@ public:
/* This inputs and outputs 16-bit 44khz stereo input. */
class SoundMixBuffer
{
basic_string<Sint32> mixbuf;
basic_string<Sint32, char_traits_Sint32> mixbuf;
float vol;
public:
+1 -2
View File
@@ -28,8 +28,7 @@ SDL_Surface *SDL_CreateRGBSurfaceSane
void FixHiddenAlpha(SDL_Surface *img);
template<>
struct char_traits<Sint32>
struct char_traits_Sint32: public char_traits<Sint32>
{
static Sint32 *copy(Sint32 *s, const Sint32 *p, size_t n)
{