The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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, 1 Month, 3 Weeks 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


Messages In This Thread
Jerky sound with dmix custom configuration - by mkkot - 06-14-2012, 08:02 PM



Users browsing this thread: 1 Guest(s)