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

  alsa, archlinux, bass, c++, linux

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?

Source: Windows Questions C++