Skip to content

Commit

Permalink
docs: update docs for useIOSAudioManagement
Browse files Browse the repository at this point in the history
  • Loading branch information
davidliu committed Dec 6, 2023
1 parent c82f975 commit dea542b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/AudioManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { log } from '..';
*
* @param room
* @param preferSpeakerOutput
* @param onConfigureNativeAudio
* @param onConfigureNativeAudio A custom method for determining options used.
*/
export function useIOSAudioManagement(
room: Room,
Expand Down
2 changes: 2 additions & 0 deletions src/audio/AudioSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ export default class AudioSession {
* Applies the provided audio configuration to the underlying AudioSession.
*
* Must be called prior to connecting to a Room for the configuration to apply correctly.
*
* See also useIOSAudioManagement for automatic configuration of iOS audio options.
*/
static configureAudio = async (config: AudioConfiguration) => {
await LivekitReactNative.configureAudio(config);
Expand Down

0 comments on commit dea542b

Please sign in to comment.