Skip to content

Commit eb30d85

Browse files
committedApr 29, 2024·
feat(cientos/positional-audio): improve documentation
1 parent 8b65696 commit eb30d85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎docs/guide/abstractions/positional-audio.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ If you are sure that there will be a user gesture before your `<PositionAudio>`
6767

6868
| Event | Description |
6969
| :---------- | :--------------------------------------------------------------- |
70-
| `root` | Root component — Inheritance of [PositionalAudio](https://threejs.org/docs/index.html?q=posi#api/en/audio/PositionalAudio).|
70+
| `root` | Root reference — Inheritance of [PositionalAudio](https://threejs.org/docs/index.html?q=posi#api/en/audio/PositionalAudio).|
7171
| `play()` | Play audio — *Cannot be fired if audio is already running.* |
7272
| `pause()` | Pause audio — *Cannot be fired if audio is already paused.* |
7373
| `stop()` | Stop audio — *Cannot be fired if audio is already stopped.* |
@@ -77,6 +77,8 @@ If you are sure that there will be a user gesture before your `<PositionAudio>`
7777
```typescript{1,6}
7878
const positionalAudioRef = shallowRef(null)
7979
80+
console.log(positionalAudioRef.value.root) // root properties
81+
8082
const handlerAudio = (action: string) => {
8183
if (!positionalAudioRef.value) return
8284

0 commit comments

Comments
 (0)
Please sign in to comment.