Bass library: unable to open slave in linux C++

136 views Asked by At

Here is code:

if (!BASS_Init(-1, 44100, 0, NULL, NULL)) {
    return 0;
}

DWORD chan = BASS_StreamCreateFile(FALSE, argv[1] , 0, 0, BASS_SAMPLE_LOOP);
BASS_ChannelPlay(chan, FALSE);

After compiling and running program i get following error:

ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave

How can i fix it?

0

There are 0 answers