- Timestamp:
- Jan 26, 2007 4:57:01 PM (18 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/audio.c
r355 r366 128 128 1.0 129 129 #else 130 #ifndef VBOX 130 131 UINT_MAX, 131 132 UINT_MAX 133 #else 134 INT_MAX, 135 INT_MAX 136 #endif 132 137 #endif 133 138 }; … … 137 142 { 138 143 0, 139 UINT_MAX, 140 UINT_MAX 144 INT_MAX, 145 INT_MAX 146 }; 147 volume_t pcm_in_volume = 148 { 149 0, 150 INT_MAX, 151 INT_MAX 141 152 }; 142 153 #endif … … 1733 1744 case AUD_MIXER_VOLUME: 1734 1745 name = "MASTER"; 1735 vol = &pcm_out_volume;1746 vol = &pcm_out_volume; 1736 1747 break; 1737 1748 case AUD_MIXER_PCM: … … 1740 1751 case AUD_MIXER_LINE_IN: 1741 1752 name = "LINE_IN"; 1753 vol = &pcm_in_volume; 1742 1754 break; 1743 1755 default: -
trunk/src/VBox/Devices/Audio/audio_int.h
r355 r366 216 216 extern struct audio_driver dsound_audio_driver; 217 217 extern volume_t nominal_volume; 218 #ifdef VBOX 219 extern volume_t pcm_out_volume; 220 extern volume_t pcm_in_volume; 221 #endif 218 222 219 223 uint64_t audio_get_clock (void); -
trunk/src/VBox/Devices/Audio/dsoundaudio.c
r1 r366 926 926 decr = len1 + len2; 927 927 928 #ifndef VBOX 928 929 if (p1 && len1) { 929 930 hw->conv (hw->conv_buf + hw->wpos, p1, len1, &nominal_volume); … … 933 934 hw->conv (hw->conv_buf, p2, len2, &nominal_volume); 934 935 } 936 #else 937 if (p1 && len1) { 938 hw->conv (hw->conv_buf + hw->wpos, p1, len1, &pcm_in_volume); 939 } 940 941 if (p2 && len2) { 942 hw->conv (hw->conv_buf, p2, len2, &pcm_in_volume); 943 } 944 #endif 935 945 936 946 dsound_unlock_in (dscb, p1, p2, blen1, blen2); -
trunk/src/VBox/Devices/Audio/ossaudio.c
r356 r366 783 783 } 784 784 read_samples += nread >> hwshift; 785 #ifndef VBOX 785 786 hw->conv (hw->conv_buf + bufs[i].add, p, nread >> hwshift, 786 787 &nominal_volume); 788 #else 789 hw->conv (hw->conv_buf + bufs[i].add, p, nread >> hwshift, 790 &pcm_in_volume); 791 #endif 787 792 } 788 793
Note:
See TracChangeset
for help on using the changeset viewer.