We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
方法getNumberOfChannels,setSystemVolume,getSystemVolume,setPan,getPan,setPitch,getPitch,setSpeakerphoneOn,setMode,enableInSilenceMode,enable,setCategory 在Harmony没有对应的api
getNumberOfChannels :获取音频通道数 setSystemVolume:设置系统音量 getSystemVolume:获取系统音量 setPan:设置左右声道平衡 getPan:获取左右声道平衡 setPitch:设置音高 getPitch:获取音高 setSpeakerphoneOn: 设置扬声器 setMode :设置会话模式,对标ios的模式有 : AVAudioSessionModeDefault, AVAudioSessionModeVoiceChat, AVAudioSessionModeVideoChat, AVAudioSessionModeGameChat, AVAudioSessionModeVideoRecording, AVAudioSessionModeMeasurement, AVAudioSessionModeMoviePlayback, AVAudioSessionModeSpokenAudio, enableInSilenceMode:是否在静音模式下播放 enable:启用或禁用音频播放功能 setCategory:设置播放类别 setActive:设置播放状态
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:设置播放状态
The text was updated successfully, but these errors were encountered: