CC:HQ Speaker's
Minecraft 的模组,CC Tweaked Speaker's
为什么需要这个模组?
- 它提供了来自相同 CC Speaker's 的极高音质音频体验
- 如果使用 Sound Physics Remastered,请将 update moving sounds(更新移动声音)设置为
true,以便让声音穿过墙壁等时产生消音效果
基于 CC Tweaked 现有的 speaker's 并为其提供显著的“升级”。
新增对 MP3、WAV、OGG、PCM 以及 HLS、TS 的支持。
功能
播放
playAudio(samples)
playAudio(samples, volume)
playNote(instrument, volume, pitch)
playSound(soundName)
playSound(soundName, volume)
playSound(soundName, volume, pitch)
speakerPlay(audio)
speakerPlay(audio, volume)
speakerStop()
speakerVolume(volume)
setLooping(true)
setLooping(false)
声道
每个扬声器默认有 8 个声道。声道 1 = 普通扬声器。
speakerPlayChannel(channel, audio)
speakerPlayChannel(channel, audio, volume)
speakerPlayChannel(channel, audio, volume, loop)
speakerChannel(channel, "stop")
speakerChannel(channel, "pause")
speakerChannel(channel, "resume")
speakerChannel(channel, "volume", volume)
speakerChannelStatus(channel) -- { playing, paused, looping }
channel0 在speakerChannel中 = 所有声道- 事件:
hqspeaker_channel_empty, name, channel
示例
speakerPlayChannel(2, bytes, 1.0, true) -- 在声道 2 循环播放音乐
speakerPlayChannel(3, sfx) -- 在顶部播放音效
speakerChannel(2, "volume", 0.3) -- 降低声道 2 的音量
speakerChannel(0, "pause") -- 暂停所有声道
暂停/恢复
speakerPause()
speakerResume()
speakerIsPaused()
搜索/跳过
speakerSeek(deltaSeconds)
speakerSkip()
speakerSkip(seconds)
speakerSkipBack()
speakerSkipBack(seconds)
状态/信息
speakerIsPlaying()
speakerQueueSize()
speakerProgress()
speakerElapsedSamples()
speakerTotalSamples()
speakerSampleRate()
speakerMaxSamples()
speakerMaxAudioBytes()
speakerMaxOggBytes()
speakerMaxFileBytes()
speakerSupportedFiles()
流媒体
isStreaming()
getStreamUrl()
getStreamFormats()
getStreamMeta()
getStreamTitle()
getStreamArtist()
getStreamSong()
getStreamStation()
getStreamGenre()
getStreamMetaSerial()
杂项
getPeripheralType()
getPos()
多扬声器
getSpeakerCount()
getSpeakers()
getSpeakerPos(index)
全部(计算机上的所有扬声器)
playNoteAll(instrument, volume, pitch)
playSoundAll(soundName)
playSoundAll(soundName, volume)
playSoundAll(soundName, volume, pitch)
playAudioAll(samples)
playAudioAll(samples, volume)
speakerPlayAll(audio)
speakerPlayAll(audio, volume)
speakerStopAll()
speakerVolumeAll(volume)
setLoopingAll(true)
setLoopingAll(false)
speakerPauseAll()
speakerResumeAll()
speakerSeekAll(deltaSeconds)
speakerSkipAll()
speakerSkipAll(seconds)
speakerSkipBackAll()
speakerSkipBackAll(seconds)
指定位置(按索引的一个扬声器)
playNoteAt(index, instrument, volume, pitch)
playSoundAt(index, soundName)
playSoundAt(index, soundName, volume)
playSoundAt(index, soundName, volume, pitch)
playAudioAt(index, samples)
playAudioAt(index, samples, volume)
speakerPlayAt(index, audio)
speakerPlayAt(index, audio, volume)
speakerStopAt(index)
speakerPauseAt(index)
speakerResumeAt(index)
speakerIsPausedAt(index)
speakerSeekAt(index, deltaSeconds)
speakerSkipAt(index)
speakerSkipAt(index, seconds)
speakerSkipBackAt(index)
speakerSkipBackAt(index, seconds)
speakerProgressAt(index)
配置
hqspeaker-server.toml
| 部分 | 选项 | 默认值 | 备注 |
|---|---|---|---|
[formats] |
pcmPlayable |
true |
|
[formats] |
mp3Playable |
true |
|
[formats] |
oggPlayable |
true |
|
[formats] |
hlsPlayable |
true |
|
[formats] |
tsPlayable |
true |
|
[formats] |
wavPlayable |
true |
|
[limits] |
maxAudioFileSizeMB |
8 |
最大 128 |
[limits] |
maxVolume |
1.0 |
最大 16 |
[limits] |
maxChannels |
8 |
最大 32 |
你是这个资源的作者?登录后可认领此资源。
相似资源
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
349
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
341
Xaero的小地图
thexaero
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
冒险交通
242
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
240
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
239
Applied Energistics 2
shartte
AE2:一款流行的自动化与存储模组
存储科技
217
评论 0
登录后参与评分
还没有评论,来抢沙发吧