sound always bad don't give up
This commit is contained in:
@@ -202,10 +202,10 @@ void retro_sound_update()
|
|||||||
|
|
||||||
if (! UI_is_active) {
|
if (! UI_is_active) {
|
||||||
|
|
||||||
Sound_Callback(SBUF, 1024);
|
Sound_Callback(SNDBUF, 1024*2*2);
|
||||||
//POKEYSND_Process(SNDBUF,snd_sampler_pal);
|
//POKEYSND_Process(SNDBUF,snd_sampler_pal);
|
||||||
for(x=0;x<snd_sampler_pal;x++){
|
for(x=0;x<snd_sampler_pal*2;x+=2){
|
||||||
|
/*
|
||||||
int smp = ((int) (((UBYTE *) SBUF)[x]) - 0x80) * 0x100;
|
int smp = ((int) (((UBYTE *) SBUF)[x]) - 0x80) * 0x100;
|
||||||
//int smp2 = ((int) (((UBYTE *) SBUF)[x+snd_sampler_pal]) - 0x80) * 0x100;
|
//int smp2 = ((int) (((UBYTE *) SBUF)[x+snd_sampler_pal]) - 0x80) * 0x100;
|
||||||
|
|
||||||
@@ -213,14 +213,14 @@ void retro_sound_update()
|
|||||||
smp = 32767;
|
smp = 32767;
|
||||||
else if (smp < -32768)
|
else if (smp < -32768)
|
||||||
smp = -32768;
|
smp = -32768;
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
if (smp2 > 32767)
|
if (smp2 > 32767)
|
||||||
smp2 = 32767;
|
smp2 = 32767;
|
||||||
else if (smp2 < -32768)
|
else if (smp2 < -32768)
|
||||||
smp2 = -32768;
|
smp2 = -32768;
|
||||||
*/
|
*/
|
||||||
retro_audio_cb(smp,smp);
|
retro_audio_cb(SNDBUF[x],SNDBUF[x+1]);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -294,8 +294,8 @@ int PLATFORM_SoundSetup(Sound_setup_t *setup)
|
|||||||
{
|
{
|
||||||
//force 16 bit stereo sound at 44100
|
//force 16 bit stereo sound at 44100
|
||||||
setup->freq=44100;
|
setup->freq=44100;
|
||||||
setup->sample_size=1;
|
setup->sample_size=2;
|
||||||
setup->channels=1;
|
setup->channels=2;
|
||||||
// setup->buffer_ms=20;
|
// setup->buffer_ms=20;
|
||||||
setup->buffer_frames = 1024;
|
setup->buffer_frames = 1024;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user