I am trying to use the developer lib and it works really well excepted when I try to change the audio driver.
For information the regular version of sunvox is able to use the jack driver.
Right now im trying on the file sunvox_lib/examples/c/test2.c
I changed :
Code: Select all
int ver = sv_init( 0, 44100, 2, 0 );
Code: Select all
int ver = sv_init( "audiodriver=jack", 44100, 2, 0 );
Code: Select all
/*
sv_init(), sv_deinit() - global sound system init/deinit
Parameters:
config - string with additional configuration in the following format: "option_name=value|option_name=value";
example: "buffer=1024|audiodriver=alsa|audiodevice=hw:0,0";
use null if you agree to the automatic configuration;
freq - desired sample rate (Hz); min - 44100;
the actual rate may be different, if SV_INIT_FLAG_USER_AUDIO_CALLBACK is not set;
channels - only 2 supported now;
flags - mix of the SV_INIT_FLAG_xxx flags.
*/
Desired audio buffer size: 4096 frames
ALSA: pulse
ALSA HW Default rate: 44100
ALSA HW Rate: 44100 frames
ALSA HW Buffer size: 8192 frames
ALSA HW Period size: 221
ALSA HW Periods: 0
ALSA SW Avail min: 221
ALSA SW Start threshold: 1
ALSA SW Stop threshold: 8192
SunVox lib version: 1.9.5