aboutsummaryrefslogtreecommitdiff
path: root/pd/portmidi_osx/pmutil.h
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2005-05-30 03:01:38 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2005-05-30 03:01:38 +0000
commit47729b52cb85e8a52bf2e6bbf8ee9a810ed331e1 (patch)
treeb001d3f3bdf3539d928535e47a965c72f7044a26 /pd/portmidi_osx/pmutil.h
parentfcba84c01167d5be4e4ed70619fda85cb63804fe (diff)
Add new portmidi and update portaudio. CHanges to makefile.nt and various
sources. Checking that I'm in sync with "help" file changes. I ended up deleting help files in extra and recreating them under the new names. svn path=/trunk/; revision=3091
Diffstat (limited to 'pd/portmidi_osx/pmutil.h')
-rw-r--r--pd/portmidi_osx/pmutil.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/pd/portmidi_osx/pmutil.h b/pd/portmidi_osx/pmutil.h
deleted file mode 100644
index b6268ed3..00000000
--- a/pd/portmidi_osx/pmutil.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* pmutil.h -- some helpful utilities for building midi
- applications that use PortMidi
- */
-
-typedef void PmQueue;
-
-/*
- A single-reader, single-writer queue is created by
- Pm_QueueCreate(), which takes the number of messages and
- the message size as parameters. The queue only accepts
- fixed sized messages. Returns NULL if memory cannot be allocated.
-
- Pm_QueueDestroy() destroys the queue and frees its storage.
- */
-
-PmQueue *Pm_QueueCreate(long num_msgs, long bytes_per_msg);
-PmError Pm_QueueDestroy(PmQueue *queue);
-
-/*
- Pm_Dequeue() removes one item from the queue, copying it into msg.
- Returns 1 if successful, and 0 if the queue is empty.
- Returns pmBufferOverflow and clears the overflow flag if
- the flag is set.
- */
-PmError Pm_Dequeue(PmQueue *queue, void *msg);
-
-
-/*
- Pm_Enqueue() inserts one item into the queue, copying it from msg.
- Returns pmNoError if successful and pmBufferOverflow if the queue was
- already full. If pmBufferOverflow is returned, the overflow flag is set.
- */
-PmError Pm_Enqueue(PmQueue *queue, void *msg);
-
-
-/*
- Pm_QueueFull() returns non-zero if the queue is full
- Pm_QueueEmpty() returns non-zero if the queue is empty
-
- Either condition may change immediately because a parallel
- enqueue or dequeue operation could be in progress.
- */
-int Pm_QueueFull(PmQueue *queue);
-#define Pm_QueueEmpty(m) (m->head == m->tail)