CC:HQ Speakers

模组

· 作者 tiktop101

CC HQ Speakers 一个用于 Minecraft 的模组,基于 CC Tweaked Speaker,提供更高品质的音频支持,最重要的是支持 MP3 格式。

0 本站下载 0 关注 更新于 2 周前

最新 1.1.1-Neoforge · 1.21.1 · NeoForge

一键开服(送7天)

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 }
  • channel 0 在 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

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源