Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSound.cpp File Reference
#include "nscore.h"
#include "nsIAllocator.h"
#include "plstr.h"
#include "nsVoidArray.h"
#include "prnetdb.h"
#include "nsIURL.h"
#include "nsNetUtil.h"
#include "prmem.h"
#include "nsGfxUtils.h"
#include "nsIStreamLoader.h"
#include "nsICacheService.h"
#include "nsICacheSession.h"
#include "nsICacheEntryDescriptor.h"
#include "nsICachingChannel.h"
#include "nsIInternetConfigService.h"
#include "nsITimer.h"
#include "nsCRT.h"
#include <Gestalt.h>
#include <Sound.h>
#include <Movies.h>
#include <QuickTimeComponents.h>
#include "nsSound.h"
#include "nsString.h"

Go to the source code of this file.

Classes

class  nsSoundRequest
class  nsSystemSoundRequest
class  nsMovieSoundRequest
class  nsMoviePortOwner

Functions

static PRUint32 SecondsFromPRTime (PRTime prTime)
static void CopyCToPascalString (const char *inString, StringPtr outPString)

Function Documentation

static void CopyCToPascalString ( const char *  inString,
StringPtr  outPString 
) [static]

Definition at line 194 of file nsSound.cpp.

{
  SInt32   nameLen = strlen(inString) & 0xFF;    // max 255 chars
  ::BlockMoveData(inString, &outPString[1], nameLen);
  outPString[0] = nameLen;
}

Here is the caller graph for this function:

static PRUint32 SecondsFromPRTime ( PRTime  prTime) [static]

Definition at line 182 of file nsSound.cpp.

{
  PRInt64 microSecondsPerSecond, intermediateResult;
  PRUint32 seconds;
  
  LL_I2L(microSecondsPerSecond, PR_USEC_PER_SEC);
  LL_DIV(intermediateResult, prTime, microSecondsPerSecond);
  LL_L2UI(seconds, intermediateResult);
  return seconds;
}