zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
alstream.c File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <assert.h>
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "common/alhelpers.h"
#include "common/alffmpeg.h"

Go to the source code of this file.

Macros

#define BUFFER_SIZE   8192
 
#define NUM_BUFFERS   4
 

Typedefs

typedef struct StreamPlayer StreamPlayer
 

Functions

static void ClosePlayerFile (StreamPlayer *player)
 
static void DeletePlayer (StreamPlayer *player)
 
int main (int argc, char **argv)
 
static StreamPlayerNewPlayer (void)
 
static int OpenPlayerFile (StreamPlayer *player, const char *filename)
 
static int StartPlayer (StreamPlayer *player)
 
static int UpdatePlayer (StreamPlayer *player)
 

Variables

LPALBUFFERSAMPLESSOFT alBufferSamplesSOFT = wrap_BufferSamples
 
LPALISBUFFERFORMATSUPPORTEDSOFT alIsBufferFormatSupportedSOFT = NULL
 

Macro Definition Documentation

#define BUFFER_SIZE   8192

Definition at line 49 of file alstream.c.

Referenced by OpenPlayerFile().

#define NUM_BUFFERS   4

Definition at line 48 of file alstream.c.

Referenced by DeletePlayer(), NewPlayer(), PSPAUD_OpenDevice(), PSPAUD_PlayDevice(), and StartPlayer().

Typedef Documentation

typedef struct StreamPlayer StreamPlayer

Function Documentation

static void ClosePlayerFile ( StreamPlayer player)
static

Definition at line 178 of file alstream.c.

References closeAVFile(), free, and NULL.

Referenced by DeletePlayer(), main(), and OpenPlayerFile().

static void DeletePlayer ( StreamPlayer player)
static

Definition at line 110 of file alstream.c.

References AL_NO_ERROR, alDeleteBuffers(), alDeleteSources(), alGetError(), ClosePlayerFile(), free, memset, and NUM_BUFFERS.

Referenced by main().

static int OpenPlayerFile ( StreamPlayer player,
const char *  filename 
)
static
static int StartPlayer ( StreamPlayer player)
static

Variable Documentation

Definition at line 41 of file alstream.c.

LPALISBUFFERFORMATSUPPORTEDSOFT alIsBufferFormatSupportedSOFT = NULL

Definition at line 42 of file alstream.c.