Changeset 5235:f6772d7182e8 in roaraudio for libroarsndio
- Timestamp:
- 11/12/11 16:33:39 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarsndio/volume.c
r4708 r5235 64 64 mixer.rpg_mul = 1; 65 65 mixer.rpg_div = 1; 66 mixer.mixer[0] = vol; 67 68 if ( roar_set_vol2(&(hdl->con), roar_stream_get_id(&(hdl->stream)), &mixer, 0, ROAR_SET_VOL_UNMAPPED) == -1 ) 69 return 0; 66 70 67 71 for (i = 0; i < hdl->info.channels; i++) 68 72 mixer.mixer[i] = vol; 69 73 70 if ( roar_set_vol (&(hdl->con), roar_stream_get_id(&(hdl->stream)), &mixer, hdl->info.channels) == -1 )74 if ( roar_set_vol2(&(hdl->con), roar_stream_get_id(&(hdl->stream)), &mixer, hdl->info.channels, ROAR_SET_VOL_ALL) == -1 ) 71 75 return 0; 72 76
Note: See TracChangeset
for help on using the changeset viewer.