Changeset 4013:abd38c189de7 in roaraudio for doc/man7/roartut.7


Ignore:
Timestamp:
07/01/10 19:18:30 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some manpage fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/man7/roartut.7

    r4012 r4013  
    4444 
    4545To open the connection we use the call \fBroar_simple_play\fR(3): 
    46  if ( (fh = roar_simple_play(rate, channels, bits, codec, NULL, "sine gen")) == -1 ) { 
     46 if ( (fh = roar_simple_play(rate, channels, bits, codec, NULL, "sine gen")) == \-1 ) { 
    4747  fprintf(stderr, "Error: can not open playback!\\n"); 
    4848  exit(1); 
     
    5959  } 
    6060 
    61 The sine is multiplyed by 127 as our amplitude range for 8 bit signed int is from -128 to +127. 
     61The sine is multiplyed by 127 as our amplitude range for 8 bit signed int is from \-128 to +127. 
    6262 
    6363After we have our current data in \fBout\fR we want to write them to the server: 
     
    8989  char out[1024]; 
    9090 
    91   if ( (fh = roar_simple_play(rate, channels, bits, codec, NULL, "sine gen")) == -1 ) { 
     91  if ( (fh = roar_simple_play(rate, channels, bits, codec, NULL, "sine gen")) == \-1 ) { 
    9292   fprintf(stderr, "Error: can not open playback!\\n"); 
    9393   exit(1); 
     
    108108 
    109109To compile and link we can use a command like this one: 
    110  cc -o roarsin roarsin.c -lm `roar-config --libs --cflags` 
     110 cc \-o roarsin roarsin.c \-lm `roar\-config \-\-libs \-\-cflags` 
    111111 
    112112We need to use \fB-lm\fR to link the math library for \fBsin()\fR. 
Note: See TracChangeset for help on using the changeset viewer.