You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
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:设置播放状态