Wii U samples are signed
This commit is contained in:
parent
7d95fb8ea3
commit
745783a025
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
struct AudioBackend_Sound
|
struct AudioBackend_Sound
|
||||||
{
|
{
|
||||||
unsigned char *samples;
|
signed char *samples;
|
||||||
size_t length;
|
size_t length;
|
||||||
AXVoice *voice;
|
AXVoice *voice;
|
||||||
unsigned int frequency;
|
unsigned int frequency;
|
||||||
|
@ -165,7 +165,7 @@ AudioBackend_Sound* AudioBackend_CreateSound(unsigned int frequency, const unsig
|
||||||
|
|
||||||
if (sound != NULL)
|
if (sound != NULL)
|
||||||
{
|
{
|
||||||
unsigned char *samples_copy = (unsigned char*)malloc(length);
|
signed char *samples_copy = (signed char*)malloc(length);
|
||||||
|
|
||||||
if (samples_copy != NULL)
|
if (samples_copy != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue