use Sint32 char_traits
This commit is contained in:
@@ -293,7 +293,7 @@ void SoundMixBuffer::write(const Sint16 *buf, unsigned size)
|
|||||||
{
|
{
|
||||||
if(mixbuf.size() < 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());
|
mixbuf.insert(mixbuf.end(), empty.begin(), empty.end());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include "SDL_utils.h"
|
||||||
#include "arch/Sound/RageSoundDriver.h"
|
#include "arch/Sound/RageSoundDriver.h"
|
||||||
|
|
||||||
#include "RageThreads.h"
|
#include "RageThreads.h"
|
||||||
@@ -67,7 +68,7 @@ public:
|
|||||||
/* This inputs and outputs 16-bit 44khz stereo input. */
|
/* This inputs and outputs 16-bit 44khz stereo input. */
|
||||||
class SoundMixBuffer
|
class SoundMixBuffer
|
||||||
{
|
{
|
||||||
basic_string<Sint32> mixbuf;
|
basic_string<Sint32,char_traits_Sint32> mixbuf;
|
||||||
float vol;
|
float vol;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user