The Be Book Release Notes Release Notes Index

The Game Kit


BFileGameSound

Declared in:  be/game/FileGameSound.h
more...



BFileGameSound()

BFileGameSound(const char *pathname,
      bool looping = true,
      BGameSoundDevice *device = NULL)

This new constructor lets you set the file as a pathname (instead of as an entry_ref) .


SetPaused() , IsPaused()

virtual status_t SetPaused(bool pauseIt, bigtime_t rampTime)
int32 IsPaused(void)

SetPaused() lets you pause and resume the sound as pauseIt is true or false. rampTime is the amount of time, in microseconds, that will be used to fade in or fade out.

IsPaused() returns a value that describes the current paused state:

RETURN CODES

SetPaused() returns:


BSimpleGameSound

Declared in:  be/game/SimpleGameSound.h

BSimpleGameSound()

BSimpleGameSound(const char *pathname,
      BGameSoundDevice *device = NULL)

This new constructor lets you set the file as a pathname (instead of as an entry_ref) .


The Be Book Release Notes Release Notes Index

The Be Book,
...in lovely HTML...
for BeOS Release 5.

Copyright © 2000 Be, Inc. All rights reserved..