Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | 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 <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 int(PR_CALLBACKEsdPlayStreamFallbackType )(int, int, const char *, const char *)

Variables

static int esdref = -1
static PRLibraryelib = nsnull

Define Documentation

#define ESD_BITS16   (0x0001)

Definition at line 64 of file nsSound.cpp.

#define ESD_BITS8   (0x0000)

Definition at line 63 of file nsSound.cpp.

#define ESD_MONO   (0x0010)

Definition at line 65 of file nsSound.cpp.

#define ESD_PLAY   (0x1000)

Definition at line 68 of file nsSound.cpp.

#define ESD_STEREO   (0x0020)

Definition at line 66 of file nsSound.cpp.

#define ESD_STREAM   (0x0000)

Definition at line 67 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 128 of file nsSound.cpp.

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

Definition at line 127 of file nsSound.cpp.

Definition at line 70 of file nsSound.cpp.


Typedef Documentation

Definition at line 73 of file nsSound.cpp.

Definition at line 72 of file nsSound.cpp.

typedef int(PR_CALLBACK * EsdPlayStreamFallbackType)(int, int, const char *, const char *)

Definition at line 76 of file nsSound.cpp.


Variable Documentation

PRLibrary* elib = nsnull [static]

Definition at line 59 of file nsSound.cpp.

int esdref = -1 [static]

Definition at line 58 of file nsSound.cpp.