Changeset 4649:140b309f881c in roaraudio
- Timestamp:
- 12/06/10 23:33:32 (13 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r4648 r4649 16 16 * Updated ring buffer code (Closes: #91) 17 17 * Fixed a FTBFS error with clang (Closes: #86) 18 * Corrected some typos in manpages (pr1) 18 19 19 20 v. 0.4beta1 - Mon Nov 01 2010 16:14 CET -
doc/man1/roarify.1
r4571 r4649 18 18 .TP 19 19 \fB--help\fR 20 Print usage information s.20 Print usage information. 21 21 22 22 .TP -
doc/man7/roartut.7
r4612 r4649 72 72 Again most simple way is to use \fBroar_vs_run\fR(3). 73 73 74 if ( roar_vs_run(vss, &err) == -1 ) {74 if ( roar_vs_run(vss, &err) == \-1 ) { 75 75 roar_vio_printf(roar_stderr, "Error: can not loop: %s\n", roar_vs_strerr(err)); 76 76 } … … 80 80 After it returned must close the VS object. This should be done directly 81 81 after \fBroar_vs_run\fR(3) returned. This is done this way: 82 if ( roar_vs_close(vss, ROAR_VS_FALSE, &err) == -1 ) {82 if ( roar_vs_close(vss, ROAR_VS_FALSE, &err) == \-1 ) { 83 83 roar_vio_printf(roar_stderr, "Error: Can not close connection to server: %s\n", roar_vs_strerr(err)); 84 84 return 1; … … 100 100 } 101 101 102 if ( roar_vs_run(vss, &err) == -1 ) {102 if ( roar_vs_run(vss, &err) == \-1 ) { 103 103 roar_vio_printf(roar_stderr, "Error: can not loop: %s\n", roar_vs_strerr(err)); 104 104 } 105 105 106 if ( roar_vs_close(vss, ROAR_VS_FALSE, &err) == -1 ) {106 if ( roar_vs_close(vss, ROAR_VS_FALSE, &err) == \-1 ) { 107 107 roar_vio_printf(roar_stderr, "Error: Can not close connection to server: %s\n", roar_vs_strerr(err)); 108 108 return 1; … … 203 203 204 204 After we have our current data in \fBout\fR we want to write them to the server: 205 if ( roar_vs_write(vss, out, sizeof(out), &err) == -1 ) {205 if ( roar_vs_write(vss, out, sizeof(out), &err) == \-1 ) { 206 206 roar_vio_printf(roar_stderr, "Error: Can not write audio data to server: %s\n", roar_vs_strerr(err)); 207 207 break; … … 214 214 After we are finished with our main loop we have to close the connection to the server. 215 215 This is done by \fBroar_vs_close\fR(3) as we already done in the file playback example: 216 if ( roar_vs_close(vss, ROAR_VS_FALSE, &err) == -1 ) {216 if ( roar_vs_close(vss, ROAR_VS_FALSE, &err) == \-1 ) { 217 217 roar_vio_printf(roar_stderr, "Error: Can not close connection to server: %s\n", roar_vs_strerr(err)); 218 218 return 1; … … 251 251 } 252 252 253 if ( roar_vs_write(vss, out, sizeof(out), &err) == -1 ) {253 if ( roar_vs_write(vss, out, sizeof(out), &err) == \-1 ) { 254 254 roar_vio_printf(roar_stderr, "Error: Can not write audio data to server: %s\n", roar_vs_strerr(err)); 255 255 break; … … 257 257 } 258 258 259 if ( roar_vs_close(vss, ROAR_VS_FALSE, &err) == -1 ) {259 if ( roar_vs_close(vss, ROAR_VS_FALSE, &err) == \-1 ) { 260 260 roar_vio_printf(roar_stderr, "Error: Can not close connection to server: %s\n", roar_vs_strerr(err)); 261 261 return 1;
Note: See TracChangeset
for help on using the changeset viewer.