---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/interfaces/SsAudioEvent.md
---
# Interface: SsAudioEvent

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:195](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L195)

One authored audio key the playhead crossed.

**This package never produces sound.** It says what to play, how many times,
and where the file is; feeding an audio stack is the app's job, the same
division the sibling Players draw. There is no audio dependency here to make that decision for
you, and an authored key is not a command — a caller that ignores these
simply has a silent animation.

`soundListNameHash` / `soundNameHash` address the pack's `SoundList` and the
`SoundFile` within it. They are carried as well as the resolved fields
because they are what a host keys its *own* audio by when it does not want
the pack's file at all.

## Properties

### embedded

> **embedded**: `boolean`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:231](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L231)

Whether the pack carries this file's bytes in `embedded_assets` — i.e. it
was converted with `--embedded`, and `filePath` names a file that **is
not on disk**. Those bytes cannot be read out, so an embedded pack's audio
is reportable but not playable; the flag is what
keeps that legible instead of presenting as a missing file.

***

### filePath

> **filePath**: `string`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:221](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L221)

Path to the sound file **relative to the `.ssab`**, exactly like a
cellmap's `image_path` — so `resolveAgainst(baseUri, filePath)` opens it,
the same seam textures go through. Empty when the pack has no `SoundList`
entry for `soundNameHash`, which is authored garbage rather than a state to
handle.

***

### frameNo

> **frameNo**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:200](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L200)

The frame the key sits on, not the frame it was noticed on.

***

### loopNum

> **loopNum**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:212](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L212)

How many times to play it. SpriteStudio has no infinite audio loop, so this
is a count and not a flag; `1` is the ordinary authored value.

***

### partIndex

> **partIndex**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:196](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L196)

***

### partName

> **partName**: `string`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:198](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L198)

The authored part name, so a caller need not keep an index table.

***

### soundListNameHash

> **soundListNameHash**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:206](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L206)

***

### soundName

> **soundName**: `string`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:205](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L205)

The alias as authored — a name inside the sound list, not a file name.

***

### soundNameHash

> **soundNameHash**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:207](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L207)

***

### source

> **source**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:202](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L202)

The source that fired it — see `SsUserDataEvent.source`.

***

### totalMs

> **totalMs**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:223](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L223)

The authored duration in **milliseconds**, or 0 when unresolved.
