All Mods Resource Packs Data Packs Shaders Modpacks Plugins
CC:HQ Speakers

CC:HQ Speakers

by tiktop101 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

CC:HQ Speaker's

A mod for Minecraft, CC Tweaked Speaker's

Why you need this mod?

  • It gives the ability of wayyy higher quality Audio, From the SAME CC Speaker's
  • If using Sound Physics Remastered, set update moving sounds to true so it muffles it through walls etc etc

Uses CC Tweaked's current speaker's and gives them a signif "Upgrade".

Adds MP3 support, WAV, OGG, PCM obv, HLS, TS.


Functions

Playback

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)

Channels

8 per speaker by default. Channel 1 = normal speaker.

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 in speakerChannel = every channel
  • Event: hqspeaker_channel_empty, name, channel

Examples

speakerPlayChannel(2, bytes, 1.0, true)  -- loops music on channel 2
speakerPlayChannel(3, sfx)               -- sfx on top
speakerChannel(2, "volume", 0.3)         -- turns channel 2 down
speakerChannel(0, "pause")               -- pauses all channels

Pause/Resume

speakerPause()
speakerResume()
speakerIsPaused()

Seek/Skip

speakerSeek(deltaSeconds)

speakerSkip()
speakerSkip(seconds)

speakerSkipBack()
speakerSkipBack(seconds)

Status/Info

speakerIsPlaying()
speakerQueueSize()
speakerProgress()
speakerElapsedSamples()
speakerTotalSamples()
speakerSampleRate()
speakerMaxSamples()
speakerMaxAudioBytes()
speakerMaxOggBytes()
speakerMaxFileBytes()
speakerSupportedFiles()

Streaming

isStreaming()
getStreamUrl()
getStreamFormats()
getStreamMeta()
getStreamTitle()
getStreamArtist()
getStreamSong()
getStreamStation()
getStreamGenre()
getStreamMetaSerial()

Misc

getPeripheralType()
getPos()

Multi-speaker

getSpeakerCount()
getSpeakers()
getSpeakerPos(index)

All (every speaker on the computer)

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)

At (one speaker by index)

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)

Config

hqspeaker-server.toml

Section Option Default Notes
[formats] pcmPlayable true
[formats] mp3Playable true
[formats] oggPlayable true
[formats] hlsPlayable true
[formats] tsPlayable true
[formats] wavPlayable true
[limits] maxAudioFileSizeMB 8 max 128
[limits] maxVolume 1.0 max 16
[limits] maxChannels 8 max 32

How to Install CC:HQ Speakers (Mod)

CC:HQ Speakers by tiktop101 is verified for Forge, Neoforge across Minecraft versions 1.20.1, 1.21.1 (latest release: 1.1.1-Neoforge, file size: 441 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.21.1) and platform (Forge, Neoforge).
  2. Make sure you have the compatible loader or environment installed for Forge, Neoforge.
  3. Move the downloaded CC:HQ Speakers file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Neoforge
12d ago 1
1.20.1
Forge
12d ago 1
1.21.1
Neoforge
1mo ago 1
1.20.1
Forge
1mo ago 1
1.21.1
Neoforge
1mo ago 1
1.20.1
Forge
1mo ago 1
1.21.1
Neoforge
1mo ago 1
1.20.1
Forge
1mo ago 1
1.21.1
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.1
Neoforge
3mo ago 1
1.20.1
Forge
6mo ago 1
1.20.1
Forge
7mo ago 1
Added stop() so scripts that call speaker.stop() no longer break.
Fixed local URLs being blocked even when the CC:Tweaked config allows them.
Added stop() so scripts that call speaker.stop() no longer break.
Fixed local URLs being blocked even when the CC:Tweaked config allows them.
Adds EnableLogging to both client and server config, default as false.

fixes a issue w audio getting speeded/jumbled up.
Adds EnableLogging to both client and server config, default as false.

fixes a issue w audio getting speeded/jumbled up.
Works through modems now.
Works through modems now.
Fixed a client crash issue when playing audio streams (radio/HLS/MP3 URLs).
Fixed a client crash issue when playing audio streams (radio/HLS/MP3 URLs).
Added 8 audio channels per speaker so you can play music + sfx at the same time. Channel 1 = normal speaker.

speaker.speakerPlayChannel(channel, audio, volume, loop)
speaker.speakerChannel(channel, action, volume) > "stop" "pause" "resume" "volume", channel 0 = all
speaker.speakerChannelStatus(channel) > { playing, paused, looping }

speaker.speakerPlayChannel(2, bytes, 1.0, true) > loops music on ch 2
speaker.speakerPlayChannel(3, sfx) > sfx on top
speaker.speakerChannel(0, "pause") > pauses all

new event: hqspeaker_channel_empty
new config: maxChannels (default 8, max 32) in hqspeaker-server.toml under [limits]
Added 8 audio channels per speaker so you can play music + sfx at the same time. Channel 1 = normal speaker.

speaker.speakerPlayChannel(channel, audio, volume, loop)
speaker.speakerChannel(channel, action, volume) > "stop" "pause" "resume" "volume", channel 0 = all
speaker.speakerChannelStatus(channel) > { playing, paused, looping }

speaker.speakerPlayChannel(2, bytes, 1.0, true) > loops music on ch 2
speaker.speakerPlayChannel(3, sfx) > sfx on top
speaker.speakerChannel(0, "pause") > pauses all

new event: hqspeaker_channel_empty
new config: maxChannels (default 8, max 32) in hqspeaker-server.toml under [limits]
Fixed an OGG decoding memory bug. Removed the leftover HQ Speaker block I forgot to take out.
Fixed an OGG decoding memory bug. Removed the leftover HQ Speaker block I forgot to take out.
Fixes playNote("harp" etc)

since it was just producing the same annoying loud sound.
Fixes playNote("harp" etc)

since it was just producing the same annoying loud sound.
Added maxAudioFileSizeMB and maxVolume

Neoforge 1.21.1 config 1.21.1/minecraft/config/hqspeaker-server.toml

[formats]
#Per-format playability toggles for HQ Speaker.
pcmPlayable = true
#Allow MP3 files (local .mp3)
mp3Playable = true
#Allow OGG Vorbis files (local .ogg) to be played.
oggPlayable = true
#Allow HLS (.m3u8/.m3u)
hlsPlayable = true
#Allow raw MPEG-TS (.ts)
tsPlayable = true
#Allow Wavfiles (local .wav) to be played.
wavPlayable = true

[limits]
#Maximum audio file size (in MB) a speaker will accept for file playback.
#Default 8. Larger files use more memory and network bandwidth.
#Range: 1 ~ 128
maxAudioFileSizeMB = 8
#Maximum volume a speaker accepts (default 1 = 16 block range, max 16 = 256 blocks).
#Volume also scales how far the sound carries: radius = max(volume, 1) * 16 blocks,
#so volume 1 reaches 16 blocks and volume 16 reaches 256 blocks.
#Range: 1.0 ~ 16.0
maxVolume = 1.0


CC:HQ Speakers Icon
Download CC:HQ Speakers
Select game version
Select platform