Skip to content

Commit e756814

Browse files
authored
fix: change type to void (#643)
* fix: change type to void * docs: streamer as mobile only
1 parent b55ae4f commit e756814

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/audiodocs/docs/sources/streamer-node.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { Optional, ReadOnly } from '@site/src/components/Badges';
77

88
# StreamerNode
99

10+
:::caution
11+
Mobile only.
12+
:::
13+
1014
The `StreamerNode` is an [`AudioScheduledSourceNode`](/docs/sources/audio-scheduled-source-node) which represents a node that can decode and play [Http Live Streaming](https://developer.apple.com/streaming/) data.
1115
Similar to all of `AudioScheduledSourceNodes`, it can be started only once. If you want to play the same sound again you have to create a new one.
1216

packages/react-native-audio-api/src/core/AudioContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class AudioContext extends BaseAudioContext {
2424
);
2525
}
2626

27-
async close(): Promise<boolean> {
27+
async close(): Promise<void> {
2828
return (this.context as IAudioContext).close();
2929
}
3030

packages/react-native-audio-api/src/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface IBaseAudioContext {
4242
}
4343

4444
export interface IAudioContext extends IBaseAudioContext {
45-
close(): Promise<boolean>;
45+
close(): Promise<void>;
4646
resume(): Promise<boolean>;
4747
suspend(): Promise<boolean>;
4848
}

0 commit comments

Comments
 (0)