[xiph-cvs] cvs commit: snatch INSTALL README esd.c libsnatch.c
Monty
xiphmont at xiph.org
Mon Nov 12 15:16:26 PST 2001
xiphmont 01/11/12 15:16:26
Modified: . README esd.c libsnatch.c
Added: . INSTALL
Log:
strip out printfs, add an INSTALL doc
Revision Changes Path
1.3 +1 -1 snatch/README
Index: README
===================================================================
RCS file: /usr/local/cvsroot/snatch/README,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- README 2001/11/12 22:22:14 1.2
+++ README 2001/11/12 23:16:25 1.3
@@ -1,4 +1,4 @@
-Snatch 20011111
+Snatch 20011112
"The only intuitive user interface is the nipple; past that,
everything is learned."
1.2 +0 -14 snatch/esd.c
Index: esd.c
===================================================================
RCS file: /usr/local/cvsroot/snatch/esd.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- esd.c 2001/11/12 22:22:14 1.1
+++ esd.c 2001/11/12 23:16:25 1.2
@@ -41,7 +41,6 @@
}
static void esd_add_string_to_fake(esd_connection *e,char *c,int n){
- fprintf(stderr,"string=%s\n",c);
while(n--)
esd_add_char_to_fake(e,*c++);
}
@@ -237,18 +236,9 @@
esdconn[i].fakebuf+count,
esdconn[i].fakecount);
- fprintf(stderr,"esdfd %d FAKE read %d\n",fd,count);
- for(i=0;i<count;i++)
- fprintf(stderr,"0x%x,",(int)(((unsigned char *)buf)[i]));
- fprintf(stderr,"\n");
return(count);
}else{
int ret=((*libc_read)(fd,buf,count));
- int i;
- fprintf(stderr,"esdfd %d read %d\n",fd,ret);
- for(i=0;i<count;i++)
- fprintf(stderr,"0x%x,",(int)(((unsigned char *)buf)[i]));
- fprintf(stderr,"\n");
return(ret);
}
}
@@ -275,12 +265,9 @@
n=count/4;
}
- fprintf(stderr,"esdfd %d write %d [%d]\n",fd,count,*ptr);
-
while(n-->0){
if(esdconn[i].count<=0){
/* handle new request */
- fprintf(stderr,"ESD proto requested=%d fd=%d\n",*ptr,fd);
esdconn[i].rq=*ptr++;
switch(esdconn[i].rq){
case 3:
@@ -349,7 +336,6 @@
case 3:
/* ok, audio stream init all handled; cut it loose */
audio_fd=fd;
- fprintf(stderr,"ESD audio stream (fd %d) cut loose\n",fd);
/* no response; just go */
break;
case 17:
1.25 +0 -1 snatch/libsnatch.c
Index: libsnatch.c
===================================================================
RCS file: /usr/local/cvsroot/snatch/libsnatch.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- libsnatch.c 2001/11/12 22:22:14 1.24
+++ libsnatch.c 2001/11/12 23:16:25 1.25
@@ -528,7 +528,6 @@
the current sample buffer will begin playing, not when it
is queued */
- fprintf(stderr,"Queue is at T%+f\n",stime-now);
if(stime<now){
/* queue starved; player will need to skip or stretch. Advance
the absolute position to maintain sync. Note that this is
1.1 snatch/INSTALL
Index: INSTALL
===================================================================
*************************** REQUIREMENTS **************************
Linux RealPlayer 8 (for any available platform).
Perl 5 (for the Snatch Robot) with File::Glob, Tk8 and a couple of
other modules that are standard in most Perl installs. File::Glob
didn't become included by default until Perl 5.6.0, so at least 5.6.0
is recommended.
A compiler, GCC heavily recommended.
*************************** COMPILATION ***************************
libsnatch has to be compiled. It isn't actually worthy of a Makefile
at this point.
gcc -O2 -shared libsnatch.c -o libsnatch.so
All the dynamic libs libnatch needs are sucked in from RealPlayer.
The Snatch Robot need not be compiled as it's a Perl script.
*************************** INSTALLATION **************************
The only two important bits to install are libsnatch.so and the Snatch
Robot. Installation consists of:
1) Put the Snatch Robot ('Snatch') wherever you want it. Somewhere in
the path is recommended. /usr/local/bin/ usually does nicely.
2) Stick libsnatch.so where Snatch Robot can find it. The places
Snatch Robot searches by default are:
/usr/local/lib/libsnatch.so
/usr/lib/libsnatch.so
~/snatch/libsnatch.so
~/.snatch/libsnatch.so
The Snatch Robot will need to find RealPlayer too. If it's not in the
path, you can deal with that after starting Snatch.
***************************** EXAMPLES ****************************
To install Snatch in your home directory (doesn't need root)
tar -xvzf snatch-20011112.tgz
cd snatch-20011112
gcc -O2 -shared libsnatch.c -o libsnatch.so
mkdir ~/.snatch
mv libsnatch.so ~/.snatch
mv Snatch ~/
run Snatch with ~/Snatch
To install Snatch for the whole system (as root)
tar -xvzf snatch-20011112.tgz
cd snatch-20011112
gcc -O2 -shared libsnatch.c -o libsnatch.so
mv libsnatch.so /usr/lib/
mv Snatch /usr/bin/
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list