[FIXED]Wrong channel map for surround playback

Technical support for the Linux and Mac platforms for all Trine games.
adrianoml
Posts: 1
Joined: Wed Jul 11, 2012 11:52 pm

[FIXED]Wrong channel map for surround playback

Postby adrianoml » Thu Jul 12, 2012 12:18 am

Trine 2 seems to make it's own guess when coping with 5.1 or 7.1 setups. I've run 2 other openal games alongside trine 2 and they all seem to somehow automatically derive a correct channel mapping, but trine 2 comes up with fixed defaults, no matter what I change.

An example for 7.1 a setup, Trine 2 seems to misplace side-* with front-*-of-center.

Code: Select all

Every 2,0s: pacmd list-sink-inputs | grep -B 7 client:

    current latency: 23,22 ms
    requested latency: 0,50 ms
    sample spec: float32le 8ch 88200Hz
    channel map: front-left,front-right,front-center,lfe,rear-left,rear-right,side-left,side-right
                 Surround 7.1
    resample method: copy
    module: 6
    client: 80975 <Amnesia.bin64>
--
    current latency: 34,56 ms
    requested latency: 0,50 ms
    sample spec: float32le 8ch 88200Hz
    channel map: front-left,front-right,front-center,lfe,rear-left,rear-right,side-left,side-right
                 Surround 7.1
    resample method: copy
    module: 6
    client: 81003 <java>
--
    muted: no
    current latency: 23,22 ms
    requested latency: 0,50 ms
    sample spec: float32le 8ch 88200Hz
    channel map: front-left,front-right,front-center,lfe,rear-left,rear-right,front-left-of-center,front-right-of-center
    resample method: copy
    module: 6
    client: 81019 <trine2_linux_32bit>



In a 5.1 arrangement, trine 2 will misplaces side-* with rear-*:

Code: Select all

Every 2,0s: pacmd list-sink-inputs | grep -B 7 client:

    current latency: 23,22 ms
    requested latency: 0,50 ms
    sample spec: float32le 6ch 88200Hz
    channel map: front-left,front-right,front-center,lfe,side-left,side-right
                 Surround 5.1
    resample method: copy
    module: 6
    client: 81608 <Amnesia.bin64>
--
    muted: no
    current latency: 23,22 ms
    requested latency: 0,50 ms
    sample spec: float32le 6ch 88200Hz
    channel map: front-left,front-right,front-center,lfe,rear-left,rear-right
    resample method: copy
    module: 6
    client: 81627 <trine2_linux_32bit>

NOTE: In this case i modified pulseaudio standard 5.1 mapping, which wrongfully uses rear-* instead of side-*, but since every other application properly identify the new mapping, this makes me guess that trine is using some sort of fixed layout.

In case Trine 2 wasen't developed with surround sound in mind, wouldn't it be safer to just force Stereo output?

EDIT: Found the problem, since trine is a 32bit application it loads the 32bit pulseaudio libs, but those weren't modified. everything is fine after all...

Return to “Trine Technical Support for Linux & Mac”

Who is online

Users browsing this forum: No registered users and 3 guests