[xiph-cvs] cvs commit: vorbis-plugins/realplayer/render queue.cpp queue.h rvorbis.cpp rvorbis.h fivemque.cpp fivemque.h
Jack Moffitt
jack at xiph.org
Thu Apr 12 20:44:37 PDT 2001
jack 01/04/12 20:44:36
Modified: realplayer/filefmt fvorbis.cpp fvorbis.h
realplayer/render rvorbis.cpp rvorbis.h
Added: realplayer/render queue.cpp queue.h
Removed: realplayer/render fivemque.cpp fivemque.h
Log:
Added copyright notices to the tops of files. Replaced the copyrighted
fivemque.* code with a new queue.
Revision Changes Path
1.3 +16 -0 vorbis-plugins/realplayer/filefmt/fvorbis.cpp
Index: fvorbis.cpp
===================================================================
RCS file: /usr/local/cvsroot/vorbis-plugins/realplayer/filefmt/fvorbis.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- fvorbis.cpp 2001/02/01 21:45:04 1.2
+++ fvorbis.cpp 2001/04/13 03:44:35 1.3
@@ -1,3 +1,19 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OGG VORBIS PROJECT SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OGG VORBIS PROJECT SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
+ * by the XIPHOPHORUS Company http://www.xiph.org/ *
+
+ ********************************************************************
+
+ function: implementation of the file format plugin for RealSystem
+
+ ********************************************************************/
+
#define INITGUID
#include <stdio.h>
1.3 +16 -0 vorbis-plugins/realplayer/filefmt/fvorbis.h
Index: fvorbis.h
===================================================================
RCS file: /usr/local/cvsroot/vorbis-plugins/realplayer/filefmt/fvorbis.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- fvorbis.h 2001/02/26 10:43:48 1.2
+++ fvorbis.h 2001/04/13 03:44:35 1.3
@@ -1,3 +1,19 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OGG VORBIS PROJECT SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OGG VORBIS PROJECT SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
+ * by the XIPHOPHORUS Company http://www.xiph.org/ *
+
+ ********************************************************************
+
+ function: headers of the file format plugin for RealSystem
+
+ ********************************************************************/
+
#ifndef __FVORBIS_H__
#define __FVORBIS_H__
1.2 +17 -1 vorbis-plugins/realplayer/render/rvorbis.cpp
Index: rvorbis.cpp
===================================================================
RCS file: /usr/local/cvsroot/vorbis-plugins/realplayer/render/rvorbis.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- rvorbis.cpp 2001/01/31 04:58:51 1.1
+++ rvorbis.cpp 2001/04/13 03:44:36 1.2
@@ -1,3 +1,19 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OGG VORBIS PROJECT SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OGG VORBIS PROJECT SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
+ * by the XIPHOPHORUS Company http://www.xiph.org/ *
+
+ ********************************************************************
+
+ function: implementation of the render plugin for RealSystem
+
+ ********************************************************************/
+
#define INITGUID
#include <stdio.h>
@@ -13,7 +29,7 @@
#include "rmarendr.h"
#include "rmaausvc.h"
-#include "fivemque.h"
+#include "queue.h"
#include "rvorbis.h"
STDAPI RMACreateInstance(IUnknown **ppRendererObj)
1.2 +17 -1 vorbis-plugins/realplayer/render/rvorbis.h
Index: rvorbis.h
===================================================================
RCS file: /usr/local/cvsroot/vorbis-plugins/realplayer/render/rvorbis.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- rvorbis.h 2001/01/31 04:58:51 1.1
+++ rvorbis.h 2001/04/13 03:44:36 1.2
@@ -1,3 +1,19 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OGG VORBIS PROJECT SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OGG VORBIS PROJECT SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
+ * by the XIPHOPHORUS Company http://www.xiph.org/ *
+
+ ********************************************************************
+
+ function: headers for the render plugin for RealSystem
+
+ ********************************************************************/
+
#ifndef __RVORBIS_H__
#define __RVORBIS_H__
@@ -93,7 +109,7 @@
IRMAAudioPlayer *m_pAudioPlayer;
IRMAAudioStream *m_pAudioStream;
RMAAudioFormat m_audioFmt;
- FiveMinuteQueue m_PacketQueue;
+ Queue m_PacketQueue;
static const char *zm_pDescription;
static const char *zm_pCopyright;
1.1 vorbis-plugins/realplayer/render/queue.cpp
Index: queue.cpp
===================================================================
/********************************************************************
* *
* THIS FILE IS PART OF THE OGG VORBIS PROJECT SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OGG VORBIS PROJECT SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
********************************************************************
function: implementation of the simple queue
********************************************************************/
#include <string.h>
#include "queue.h"
void Queue::Add(void *data)
{
QueueElement *p;
QueueElement *e = new QueueElement(data);
if (m_elements == NULL) {
m_elements = e;
} else {
p = m_elements;
while (p->m_next != NULL) p = p->m_next;
p->m_next = e;
}
}
void *Queue::Remove()
{
void *data;
if (m_elements == NULL) return NULL;
QueueElement *e = m_elements;
data = e->m_data;
delete e;
m_elements = m_elements->m_next;
return data;
}
1.1 vorbis-plugins/realplayer/render/queue.h
Index: queue.h
===================================================================
/********************************************************************
* *
* THIS FILE IS PART OF THE OGG VORBIS PROJECT SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OGG VORBIS PROJECT SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
********************************************************************
function: headers for the simple queue
********************************************************************/
#ifndef __QUEUE_H__
#define __QUEUE_H__
class QueueElement
{
friend class Queue;
public:
QueueElement(void *data)
{
m_data = data;
m_next = NULL;
};
private:
void *m_data;
QueueElement *m_next;
};
class Queue
{
public:
Queue(): m_queue(NULL)
{};
void Add(void *data);
void *Remove();
private:
QueueElement *m_queue;
};
#endif // __QUEUE_H__
--- >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