Parent Directory | Revision Log | Patch
revision 1274 by stargo, Mon Sep 18 10:17:24 2006 UTC | revision 1275 by stargo, Sun Oct 1 11:08:09 2006 UTC | |
---|---|---|
# | Line 162 oss_volume(uint16 left, uint16 right) | Line 162 oss_volume(uint16 left, uint16 right) |
162 | ||
163 | if (ioctl(g_dsp_fd, MIXER_WRITE(SOUND_MIXER_PCM), &volume) == -1) | if (ioctl(g_dsp_fd, MIXER_WRITE(SOUND_MIXER_PCM), &volume) == -1) |
164 | { | { |
165 | perror("MIXER_WRITE(SOUND_MIXER_PCM)"); | warning("hardware volume control unavailable, falling back to software volume control!\n"); |
166 | oss_driver.wave_out_volume = rdpsnd_dsp_softvol_set; | oss_driver.wave_out_volume = rdpsnd_dsp_softvol_set; |
167 | rdpsnd_dsp_softvol_set(left, right); | |
168 | return; | return; |
169 | } | } |
170 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |