Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Functions | Variables
nsSound.cpp File Reference
#include <string.h>
#include "nscore.h"
#include "plstr.h"
#include "prlink.h"
#include "nsSound.h"
#include "nsIURL.h"
#include "nsIFileURL.h"
#include "nsNetUtil.h"
#include "nsCOMPtr.h"
#include "nsAutoPtr.h"
#include <stdio.h>
#include <unistd.h>
#include <gtk/gtk.h>

Go to the source code of this file.

Defines

#define ESD_BITS8   (0x0000)
#define ESD_BITS16   (0x0001)
#define ESD_MONO   (0x0010)
#define ESD_STEREO   (0x0020)
#define ESD_STREAM   (0x0000)
#define ESD_PLAY   (0x1000)
#define WAV_MIN_LENGTH   44
#define GET_WORD(s, i)   (s[i+1] << 8) | s[i]
#define GET_DWORD(s, i)   (s[i+3] << 24) | (s[i+2] << 16) | (s[i+1] << 8) | s[i]

Typedefs

typedef int(PR_CALLBACKEsdOpenSoundType )(const char *host)
typedef int(PR_CALLBACKEsdCloseType )(int)
typedef const char const char
*typedef 
int (PR_CALLBACK *EsdAudioOpenType)(void)

Functions

typedef int (PR_CALLBACK *EsdPlayStreamType)(int
typedef void (PR_CALLBACK *EsdAudioCloseType)(void)

Variables

static int esdref = -1
static PRLibraryelib = nsnull

Define Documentation

#define ESD_BITS16   (0x0001)

Definition at line 66 of file nsSound.cpp.

#define ESD_BITS8   (0x0000)

Definition at line 65 of file nsSound.cpp.

#define ESD_MONO   (0x0010)

Definition at line 67 of file nsSound.cpp.

#define ESD_PLAY   (0x1000)

Definition at line 70 of file nsSound.cpp.

#define ESD_STEREO   (0x0020)

Definition at line 68 of file nsSound.cpp.

#define ESD_STREAM   (0x0000)

Definition at line 69 of file nsSound.cpp.

#define GET_DWORD (   s,
  i 
)    (s[i+3] << 24) | (s[i+2] << 16) | (s[i+1] << 8) | s[i]

Definition at line 136 of file nsSound.cpp.

#define GET_WORD (   s,
  i 
)    (s[i+1] << 8) | s[i]

Definition at line 135 of file nsSound.cpp.

Definition at line 72 of file nsSound.cpp.


Typedef Documentation

Definition at line 75 of file nsSound.cpp.

Definition at line 74 of file nsSound.cpp.

typedef int

Definition at line 82 of file nsSound.cpp.


Function Documentation

typedef int ( PR_CALLBACK EsdPlayStreamType)
typedef void ( PR_CALLBACK EsdAudioCloseType)

Variable Documentation

PRLibrary* elib = nsnull [static]

Definition at line 61 of file nsSound.cpp.

int esdref = -1 [static]

Definition at line 60 of file nsSound.cpp.