Changeset 5236:0a8740e27666 in roaraudio for libroar
- Timestamp:
- 11/12/11 16:42:21 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/ctl.c
r5189 r5236 57 57 } 58 58 59 int roar_server_oinfo (struct roar_connection * con, struct roar_stream * s) { 60 return roar_server_oinfo2(con, s, -1); 61 } 62 63 int roar_server_oinfo2 (struct roar_connection * con, struct roar_stream * s, int dir) { 59 int roar_server_oinfo (struct roar_connection * con, struct roar_stream * s, int dir) { 64 60 struct roar_message mes; 65 61 … … 126 122 } 127 123 128 int roar_exit (struct roar_connection * con) {129 return roar_terminate(con, 0);130 }131 132 124 int roar_terminate (struct roar_connection * con, int terminate) { 133 125 struct roar_message mes; … … 232 224 } 233 225 234 int roar_set_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels) { 235 return roar_set_vol2(con, id, mixer, channels, ROAR_SET_VOL_ALL); 236 } 237 238 int roar_set_vol2 (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels, int mode) { 226 int roar_set_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels, int mode) { 239 227 struct roar_message m; 240 228 uint16_t * info = (uint16_t *) m.data; -
libroar/vs.c
r5227 r5236 1151 1151 mode = ROAR_SET_VOL_UNMAPPED; 1152 1152 1153 if ( roar_set_vol 2(vss->con, roar_stream_get_id(&(vss->stream)), &mixer, channels, mode) == 0 )1153 if ( roar_set_vol(vss->con, roar_stream_get_id(&(vss->stream)), &mixer, channels, mode) == 0 ) 1154 1154 return 0; 1155 1155 … … 1167 1167 mode = ROAR_SET_VOL_ALL; 1168 1168 1169 if ( roar_set_vol 2(vss->con, roar_stream_get_id(&(vss->stream)), &mixer, channels, mode) == -1 ) {1169 if ( roar_set_vol(vss->con, roar_stream_get_id(&(vss->stream)), &mixer, channels, mode) == -1 ) { 1170 1170 _seterrre(); 1171 1171 return -1;
Note: See TracChangeset
for help on using the changeset viewer.