fix the vmix.pcm for a specific app

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

fix the vmix.pcm for a specific app

Postby Chipster » Sat Jan 01, 2011 9:55 am

Hello

Actually i'd like to know if it's possible to fix the vmix.pcm for a app, in a way that everytime this app starts, the volume settings stay configured and everytime this app stop, the volume settings reset
Chipster
 
Posts: 2
Joined: Sat Jan 01, 2011 9:43 am

Re: fix the vmix.pcm for a specific app

Postby cesium » Mon Jan 03, 2011 3:07 am

1. You can use a shell script and ossmix for this. Something like
Code: Select all
#!/bin/sh
app arguments
ossmix app volumes


ossmix can accept an app name for a volume argument**, so this should work.

** If the app uses multiple engines [vmix.pcms] it'd be problematic - but I haven't yet seen an app which does it.

2. I sent a patch to oss-devel which let ossxmix do exactly this, but it was rejected. If you're willing to recompile ossxmix this could do this (minus: it involves constant polling of the mixer).
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: fix the vmix.pcm for a specific app

Postby Chipster » Wed Jan 05, 2011 3:36 pm

Hello. Thx for your help. I try with a shell script before
There is mumble who use 2 PCM and i use it :/

Why it was rejected ?
Chipster
 
Posts: 2
Joined: Sat Jan 01, 2011 9:43 am

Re: fix the vmix.pcm for a specific app

Postby cesium » Wed Jan 05, 2011 4:14 pm

I see. It uses one for output and another for input. I have an idea...

As for the rejection, the devs didn't want a userland program to do this (except I can't see at all how to do it otherwise). You can search oss-devel and find the thread.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am


Return to Linux

Who is online

Users browsing this forum: Bing [Bot] and 1 guest