Unable to change audiodriver to JACK with Sunvox lib [FIXED in 1.9.5c]

Found a bug? Post it here.
Post Reply
nrm
Posts: 5
Joined: Tue Feb 04, 2020 3:18 pm

Unable to change audiodriver to JACK with Sunvox lib [FIXED in 1.9.5c]

Post by nrm » Tue Feb 04, 2020 3:40 pm

Hi !
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 );
To this:

Code: Select all

int ver = sv_init( "audiodriver=jack", 44100, 2, 0 );
According to the header:

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.
*/
The compilation finish smoothly, but when I run the executable this is what I get:
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

User avatar
NightRadio
Site Admin
Posts: 3302
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Unable to change audiodriver to JACK with Sunvox lib for developers

Post by NightRadio » Wed Feb 05, 2020 9:27 am

Hi!
There is no JACK support in the current version of the library :)
I will try to add it in 1.9.5c

nrm
Posts: 5
Joined: Tue Feb 04, 2020 3:18 pm

Re: Unable to change audiodriver to JACK with Sunvox lib [FIXED in 1.9.5c]

Post by nrm » Sat Feb 08, 2020 10:21 pm

Hi again !
Thank you for answering, I hope it will work fine for you, meanwhile I'll have fun using the alsa driver :D

nrm
Posts: 5
Joined: Tue Feb 04, 2020 3:18 pm

Re: Unable to change audiodriver to JACK with Sunvox lib [FIXED in 1.9.5c]

Post by nrm » Sun Feb 16, 2020 4:00 pm

Came back to confirm the fix, it works well, thank you!

Post Reply