Main Page Data Structures File List Data Fields Globals Related Pages

# mpbuf.h

Go to the documentation of this file.

    00001 #ifndef MPBUF_H
    00002 #define MPBUG_H
    00003
    00004 // constants for BUF_GetState()
    00005 //
    00006 #define BUF_STOPPED        0
    00007 #define BUF_STOPPING       1
    00008 #define BUF_PLAYING        2
    00009 #define BUF_STALLED        3
    00010
    00011 // constants for BUF_Lock()
    00012 //
    00013 #define BUF_FROMWRITEPOS  -1
    00014
    00015 extern long      BUF_GetSize();
    00016 extern long      BUF_GetCount();
    00017 extern long      BUF_GetFreeBytes();
    00018 extern void      BUF_GetPositions(long *playpos, long *writepos);
    00019 extern int       BUF_GetState();
    00020 extern void      BUF_SetThreshold(long threshold);
    00021
    00022 extern void      BUF_Lock(long offset, long length,
    00023                           char **buf1, long *len1,
    00024                           char **buf2, long *len2 );
    00025 extern void      BUF_Unlock(long bytesWritten);
    00026 extern unsigned  BUF_Write(char *src, unsigned length);
    00027
    00028 extern void      BUF_Play();
    00029 extern void      BUF_Stop();
    00030 extern void      BUF_Flush();
    00031 extern void      BUF_Clear();
    00032
    00033 extern long      BUF_Init(long minsize, long maxsize);
    00034 extern void      BUF_Done();
    00035
    00036 #endif