i'm having a similar problem. Trying to replace this code:
Code:
int init_sdl_audio(void)
{
if(SDL_InitSubSystem(SDL_INIT_AUDIO)) { fprintf(stderr,"Couldn't Start Sound.\n"); }
desired.freq = SAMPLE_RATE;
desired.samples = NB_SAMPLES;
desired.format = AUDIO_S16;
desired.channels = 2;
desired.callback = update_sdl_stream;
desired.userdata = NULL;
SDL_OpenAudio(&desired, NULL);
streams_sh_start();
YM2610_sh_start();
SDL_PauseAudio(0);
return 1;
}
I tried replacing it with this:
Code:
int init_sdl_audio(void)
{
snd_stream_init(update_sdl_stream);
snd_stream_queue_enable();
snd_stream_start(SAMPLE_RATE, 1);
//hangs here ^^^
streams_sh_start();
YM2610_sh_start();
return 1;
}
but it hangs at the point where I marked, within the init function, not between the two. Maybe I have to fill my buffers first? Of course, my effort is not aided by the fact that the original SDL code gives no sound on the Dreamcast either =\ (works fine on PC).
Bookmarks