Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

react-native-sound库的遗留问题 #21

Open
longgegege opened this issue Aug 12, 2024 · 0 comments
Open

react-native-sound库的遗留问题 #21

longgegege opened this issue Aug 12, 2024 · 0 comments

Comments

@longgegege
Copy link

longgegege commented Aug 12, 2024

Why it is needed

方法getNumberOfChannels,setSystemVolume,getSystemVolume,setPan,getPan,setPitch,getPitch,setSpeakerphoneOn,setMode,enableInSilenceMode,enable,setCategory 在Harmony没有对应的api

Possible implementation

getNumberOfChannels :获取音频通道数
setSystemVolume:设置系统音量
getSystemVolume:获取系统音量
setPan:设置左右声道平衡
getPan:获取左右声道平衡
setPitch:设置音高
getPitch:获取音高
setSpeakerphoneOn: 设置扬声器
setMode :设置会话模式,对标ios的模式有 :
AVAudioSessionModeDefault,
AVAudioSessionModeVoiceChat,
AVAudioSessionModeVideoChat,
AVAudioSessionModeGameChat,
AVAudioSessionModeVideoRecording,
AVAudioSessionModeMeasurement,
AVAudioSessionModeMoviePlayback,
AVAudioSessionModeSpokenAudio,
enableInSilenceMode:是否在静音模式下播放
enable:启用或禁用音频播放功能
setCategory:设置播放类别
setActive:设置播放状态

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant