Release Notes: The Game Kit

Release Notes Table of Contents | Release Notes Index

# The Game Kit

## BFileGameSound

Declared in: game/FileGameSound.h

### 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:

- `B_NOT_PAUSED`. The sound isn't paused.

- `B_PAUSED`. The sound is currently paused.

- `B_PAUSE_IN_PROGRESS`. The sound is fading out but isn't yet paused.

RETURN CODES

`SetPaused()` returns:

- `B_OK`. The sound was successfully paused or resumed.

- `EALREADY`. Can't pause a paused sound, or unpause one that's playing.

- `B_ERROR`. Resource error.

## BSimpleGameSound

Declared in: 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`) .

Release Notes Table of Contents | Release Notes Index

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

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