[xiph-cvs] cvs commit: vorbis-tools/ogg123 nullbuffer.c Makefile.am

Kenneth C. Arnold kcarnold at xiph.org
Sun Mar 25 07:59:31 PST 2001



kcarnold    01/03/25 07:59:31

  Modified:    ogg123   Makefile.am
  Added:       ogg123   nullbuffer.c
  Log:
  Adding a null buffer, for platforms on which buffer.c won't
  compile/work.  Just uncomment the line in Makefile.am for now;
  autoconf magic might come later.

Revision  Changes    Path
1.14      +2 -1      vorbis-tools/ogg123/Makefile.am

Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/Makefile.am,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Makefile.am	2001/02/19 22:27:52	1.13
+++ Makefile.am	2001/03/25 15:59:31	1.14
@@ -14,7 +14,8 @@
                 @SOCKET_LIBS@
 
 ogg123_SOURCES = ogg123.c ao_interface.c buffer.c ogg123.h buffer.h getopt.c getopt1.c getopt.h
-
+## Comment the above and uncomment the next line to disable the buffer support
+##ogg123_SOURCES = ogg123.c ao_interface.c nullbuffer.c ogg123.h buffer.h getopt.c getopt1.c getopt.h
 
 EXTRA_DIST = $(man_MANS) $(doc_DATA)
 

1.1                  vorbis-tools/ogg123/nullbuffer.c

Index: nullbuffer.c
===================================================================
/* Link this with ogg123 and the buffer support will be disabled. */
#include "ogg123.h"
#include "buffer.h"

buf_t *fork_writer (long size, devices_t *d)
{
  fprintf (stderr, "This ogg123 was not compiled with buffer support.\n");
  return NULL;
}

void submit_chunk (buf_t *buf, chunk_t chunk)
{
  fprintf (stderr, "Error: internal error in submit_chunk: no buffer support.\n");
}

void buffer_shutdown (buf_t *buf)
{
  fprintf (stderr, "Error: internal error in buffer_shutdown: no buffer support.\n");
}

--- >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