Mihai Moldovan kirjoitti:
> Hi Hannu,
>
>
>   
>> I have added a vmixctl utility that can be used to attach virtual mixer 
>> to devices that don't have it attached by default (professional audio 
>> devices and digital (S/PDIF) devices. In addition this utility can be 
>> used to change the master sampling rate used by vmix with given device. 
>> In the future it will also be possible to detach vmix from given audio 
>> device if it causes problems.
>>   
>>     
> Is this already usable?
>
>   
It has worked more than once ;-)

>   
>> For example:
>>
>> vmixctl attach /dev/oss/oss_envy24ht0/spdout                          
>>                             (Attaches vmix to an S/PDIF output device)
>> vmixctl attach /dev/oss/oss_lynxtwo0/pcm0 /dev/oss/oss_lynxtwo0/pcmin0   
>>      (Attaches vmix to a professional audio card with separate in and out)
>>   
>>     
> So when one omits the second "parameter" it is assumed, that the given 
> output device can be used as well for input, as for output and VMIX will 
> try to setup this correctly itself?
>
>   
If you give one device that can do both recording and playback then vmix 
will do full duplex too. If the device supports only output then vmix 
will be in output only mode.
>> vmixctl rate /dev/oss/oss_ich0/pcm0 44100                              
>>                             (Changes vmix rate of ICH to 44100)
>>   
>>     
> On-the-fly rate changing? Cool! :)
>   
Not fully on-the-fly. Rate change can be made only when no other 
applications are accessing the device. So you may need to kill 
applications like artsd before the rate change.

>> In the future there will also be "vmixctl detach" but that will take 
>> some time.
>>   
>>     
> No problem, I think attaching is more appreciated these days than 
> detaching. :P
>
>   
>> In addition the sampling rate currently used by vix will be reported by 
>> the vmixN-rate control (read only) in ossmix/ossxmix.
>>   
>>     
> When reporting a list of valid rates one can set, it would be a little 
> step to create a drop-down menu for this in ossxmix. :)
>   
This is bit tricky because the set of possible rates may change without 
any notice. For example with many pro sound cards the user can change 
the sample rate source (internal/external/wordclock/etc) on fly.
>
> By the way, is there any news about VMIX and USB devices? Will this work 
> or is that rather unlikely today?
>   
It is possible to use vmixctl attach with USB devices (which was one of 
the reasons why I developed vmixctl). The limitation is that only 16 bit 
mode is supported with USB devices. Also USB recording doesn't work for 
the time being.

Best regards,

Hannu
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to