You are not logged in.

#1 2012-10-06 18:37:27

ChemBro
Member
Registered: 2008-10-22
Posts: 703

Cannot record ingame sound with glc (-git)

I have a problem with recording ingame sound with some games with glc (well, glc-git). glc says, it can record sound from games, if they use alsa (or sdl and forcing sdl to use alsa). As long as I don't use pulseaudio, this shouldn't be a problem. But for some games, I can't get the sound recording to work. The 2 at the moment are:

FTL
Amnesia: The Dark Descent

I usually get a message like this:

[   1.46s  alsa_hook error ] 0xa8a8170: unsupported audio format 0x0e
[   1.46s  alsa_hook error ] 0xa8a8170: can't extract hardware configuration: Operation not supported (95)

I can record the game, but not the audio. If someone can help or test it, if it works for him, that might be nice. Or if someone knows a workaround or so. Or if someone can confirm, that there is no audio recording for those 2 games (but I actually don't wanna hear it... :-) ).

Also there are plenty of games, I got the audio recording to work with. You can see it in my youtube-channel: http://www.youtube.com/user/ChemBroTronNo1

Offline

#2 2012-12-01 03:30:49

Darkimmortal
Member
Registered: 2012-01-04
Posts: 30

Re: Cannot record ingame sound with glc (-git)

Has anyone found a solution to this?

I am getting the same issue with the game "osu!", though as I'm attempting a mad project on a headless remote server, I can't test if the sound output is actually working at all in the first place

Last edited by Darkimmortal (2012-12-01 03:30:59)

Offline

#3 2012-12-01 08:37:47

Darkimmortal
Member
Registered: 2012-01-04
Posts: 30

Re: Cannot record ingame sound with glc (-git)

Lazily worked around: https://github.com/darkimmortal/glc/tree/pulseaudio

Might need to pipe the output through SoX to set the correct sample rate:

glc-play 1234.glc -a 1 -o - | sox -c 2 -r 48000 -e floating-point -b 32 -t raw - -t wav audio.wav

pkgbuilds: (normal and lib32): http://dl.weeaboo.com/glc-float.zip

Last edited by Darkimmortal (2012-12-01 08:38:20)

Offline

#4 2012-12-01 08:51:25

ChemBro
Member
Registered: 2008-10-22
Posts: 703

Re: Cannot record ingame sound with glc (-git)

Well, my workaround was buying a second sound card and putting Line-Out of one in Line-In into the other one, but if this is not needed...

Offline

#5 2012-12-02 01:08:59

doorknob60
Member
Registered: 2008-09-29
Posts: 403

Re: Cannot record ingame sound with glc (-git)

Do you use 64 bit? I don't have a copy of Amnesia downloaded right now, but if Amnesia is a 32 bit binary game, and you use 64 bit, you need to make sure you have the proper 32 bit libraries. lib32-glc will probably be enough.

Offline

#6 2012-12-02 01:13:14

Darkimmortal
Member
Registered: 2012-01-04
Posts: 30

Re: Cannot record ingame sound with glc (-git)

doorknob60 wrote:

Do you use 64 bit? I don't have a copy of Amnesia downloaded right now, but if Amnesia is a 32 bit binary game, and you use 64 bit, you need to make sure you have the proper 32 bit libraries. lib32-glc will probably be enough.

That's not the issue, the problem is that some games are firing 32-bit float audio (0x0e type as indicated in the error) into ALSA through whatever means, and the standard GLC only supports 16, 24 and 32bit signed int audio. My fork above adds very rudimentary support for float.

Last edited by Darkimmortal (2012-12-02 01:13:35)

Offline

Board footer

Powered by FluxBB