VirtualBox

Changes between Initial Version and Version 1 of Ticket #10695


Ignore:
Timestamp:
10/16/12 14:30:05 (18 months ago)
Author:
frank
Comment:

Your observation is partly correct. It is true that other backends use the nominal_volume rather than the pcm_in_volume. But it is not true that pcm_in_volume is not changed. It is set in DevIchAc97 using set_volume(s, index, AUD_MIXER_LINE_IN, u32) and this just corresponds to the line-in mixer of the guest. The current behavior is that with OSS, the line-in mixer has to be set accordingly to get a proper recording volume. This is not necessary with other backends. I have to think what's the correct solution here.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10695 – Description

    initial v1  
    1414 
    1515The suggested fix is to do like most other audio drivers (ALSA and Pulse's drivers come to mind) and use nominal_volume exclusively. The patch below has been tested and fixes the problem on my end and for another user. Note that some other drivers use pcm_in_volume (solaudio.c and dsoundaudio.c) and may require this change as well. 
    16  
     16{{{ 
    1717--- ossaudio.c.old      2012-06-22 23:29:17.854555530 +0300 
    1818+++ ossaudio.c  2012-06-22 23:38:53.797799295 +0300 
     
    3131  
    3232             if (bufs[i].len - nread) { 
     33}}} 

www.oracle.com
ContactPrivacy policyTerms of Use