Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jerky sound with dmix custom configuration
mkkot Offline
Junior Member

Posts: 4
Threads: 1
Joined: Aug 2009
Reputation: 0
#1
Solved: 8 Years, 10 Months ago 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
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#2
Solved: 8 Years, 10 Months ago 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
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
06-14-2012, 10:46 PM
Website Find
mkkot Offline
Junior Member

Posts: 4
Threads: 1
Joined: Aug 2009
Reputation: 0
#3
Solved: 8 Years, 10 Months ago 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




Users browsing this thread: 1 Guest(s)