Main Page   Modules   Data Structures   Data Fields   Related Pages  

Audio - functions, types and macros

Handle the play and poll of any audio. More...

Data Structures

union  audio_formats
 Union to mantain all the supported audio formats. More...

struct  MJPGA_AUDIO
 The struct containing all information to play the audio. More...


Defines

#define MJPGA_AUDIO_PCM   DAT_SAMPLE
 PCM uncompressed.

#define MJPGA_AUDIO_PCMSTREAM   AL_ID('S', 'T', 'R', 'M')
 Streaming of PCM uncompressed.

#define MJPGA_AUDIO_MP3   AL_ID('M', 'P', '3', ' ')
 MP3.

#define MJPGA_AUDIO_MP3STREAM   AL_ID('M', 'P', '3', 'S')
 Streaming of MP3.

#define AVI_AUDIO_PCM   0x01
 FCC of PCM uncompressed in avi file.

#define AVI_AUDIO_MP3   0x55
 FCC of MP3 in avi file.


Typedefs

typedef MJPGA_AUDIO MJPGA_AUDIO
 The struct containing all information to play the audio.


Functions

int mjpga_audio_open (MJPGA_MOVIE *mjpga)
 Open the audio in the movie, allocating the needed memory and loading the first amount of audio.

int mjpga_audio_poll (MJPGA_MOVIE *mjpga)
 Poll the audio.

void mjpga_audio_destroy (MJPGA_MOVIE *mjpga)
 Free the memory.

void mjpga_audio_play (MJPGA_MOVIE *mjpga)
 Play the movie's audio.


Detailed Description

Handle the play and poll of any audio.

Actually it supports only PCM uncompressed and mp3

Author:
Eduardo "Dudaskank"
Date:

Function Documentation

void mjpga_audio_destroy MJPGA_MOVIE   mjpga
 

Free the memory.

The mjpga is a succesfully opened MJPGA_MOVIE.

Date:
  • Created - 07/03/2003
  • Updated - 04/04/2003

int mjpga_audio_open MJPGA_MOVIE   mjpga
 

Open the audio in the movie, allocating the needed memory and loading the first amount of audio.

The mjpga is a succesfully opened MJPGA_MOVIE.

Return 0 if ok, or 1 on error.

Date:
  • 07/03/2003 - Created

void mjpga_audio_play MJPGA_MOVIE   mjpga
 

Play the movie's audio.

The argument mjpga is the movie previously opened

Date:
  • Created - 07/03/2003
  • Updated - 04/04/2003

int mjpga_audio_poll MJPGA_MOVIE   mjpga
 

Poll the audio.

The mjpga is a succesfully opened MJPGA_MOVIE.

Return the result of the poll.

Date:
  • Created - 07/03/2003
  • Updated - 04/04/2003


Generated on Mon Apr 7 00:19:25 2003 for MJpgAlleg by doxygen1.2.18