Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jerky sound with dmix custom configuration
Author Message
mkkot Offline
Junior Member

Posts: 4
Joined: Aug 2009
Reputation: 0
Post: #1
Jerky sound with dmix custom configuration
Hello, I have an Audiotrak Prodigy HD2 sound card (it's for headphones maniacs, stereo-only). It's not very popular so I had to do few tricks to make it work under Linux, including a flash and custom dmix configuration, so it would play sound from multiple sources at the same time:
~/.asoundrc
# This config is (C) copyright Alexander Prokopyev (aulix.com), 2011
# modified by mkkot, 2012: ALC888 card removed

##### Hardware Aliases #####

pcm.music_card {
        type hw;
        card HD2; # Live
}
ctl.music_card {
        type hw;
        card HD2; # Live
}



######################### MUSIC ###########################
pcm.music_mixer {
        type dmix;
        ipc_key 1478;
        ipc_key_add_uid false; # let multiple users share
        ipc_perm 0777; # IPC permissions (octal, default 0600)
        slave {
                pcm music_card; # "hw:HD2,0"
                format S32_LE;
#               period_time 0;
#               period_size 1024;
#               buffer_size 4096;
               rate 44100;
        }
}
ctl.music_mixer ctl.music_card;

pcm.music_dm {
        type plug;
        slave.pcm "music_mixer";
}
ctl.music_dm ctl.music_card;

##### DEFAULT #######

pcm.!default pcm.music_dm;
ctl.!default ctl.music_dm;

Generally it works in dektop environment, with music players and most games, as long as application uses device "default".

However, Amnesia's game sound with this configuration is very jerky, no matter which device I select. When i remove .asoundrc content and select manually my soundcard via Launcher.bin64, it works. It doesn't work with "ALSA default" option. Any ideas? What kind of sound backend Your game uses? I would like to digg a bit to see what is the cause.
06-14-2012 08:02 PM
Find all posts by this user Quote this message in a reply
Urkle Offline
FG - Associate

Posts: 1,101
Joined: Jul 2006
Reputation: 14
Post: #2
RE: Jerky sound with dmix custom configuration
Amnesia simply uses openal. I would suggest checking to make sure you are using your system openal and not the amnesia shipped openal. If you are a compile-it-yourself type just download the latest version of the OpenAL-Soft implementation of openal.

Developing away on one of
Mac Pro Dual 2Ghz, 7GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 3-core AMD, 4GB RAM, Fedora 16, nVidia 450 1GB
06-14-2012 10:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mkkot Offline
Junior Member

Posts: 4
Joined: Aug 2009
Reputation: 0
Post: #3
RE: Jerky sound with dmix custom configuration
Thanks for your answer. How can I check which version game uses? Is there some log file? I noticed even xdg-open is provided within game's directory which is a proof of lack of faith in libraries stability Wink
06-14-2012 11:30 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)