Public Types | Public Member Functions | Static Public Member Functions

nsAudioStream Class Reference

#include <nsAudioStream.h>

Collaboration diagram for nsAudioStream:

List of all members.

Public Types

enum  SampleFormat { FORMAT_U8, FORMAT_S16_LE, FORMAT_FLOAT32 }

Public Member Functions

 nsAudioStream ()
 ~nsAudioStream ()
void Init (PRInt32 aNumChannels, PRInt32 aRate, SampleFormat aFormat)
void Shutdown ()
void Write (const void *aBuf, PRUint32 aCount)
PRInt32 Available ()
void SetVolume (float aVolume)
void Drain ()
void Pause ()
void Resume ()
float GetPosition ()

Static Public Member Functions

static void InitLibrary ()
static void ShutdownLibrary ()

Member Enumeration Documentation

Enumerator:
FORMAT_U8 
FORMAT_S16_LE 
FORMAT_FLOAT32 

Constructor & Destructor Documentation

nsAudioStream::nsAudioStream (  ) 
nsAudioStream::~nsAudioStream (  ) 

Member Function Documentation

PRInt32 nsAudioStream::Available (  ) 
void nsAudioStream::Drain (  ) 
float nsAudioStream::GetPosition (  ) 
void nsAudioStream::Init ( PRInt32  aNumChannels,
PRInt32  aRate,
SampleFormat  aFormat 
)
static void nsAudioStream::InitLibrary (  )  [static]
void nsAudioStream::Pause (  ) 
void nsAudioStream::Resume (  ) 
void nsAudioStream::SetVolume ( float  aVolume  ) 
void nsAudioStream::Shutdown (  ) 
static void nsAudioStream::ShutdownLibrary (  )  [static]
void nsAudioStream::Write ( const void *  aBuf,
PRUint32  aCount 
)

The documentation for this class was generated from the following file: