MCPcopy Create free account
hub / github.com/alienkitty/space.js / setSound

Method setSound

src/ui/MuteButton.js:123–129  ·  view source on GitHub ↗
(sound)

Source from the content-addressed store, hash-verified

121 // Public methods
122
123 setSound(sound) {
124 this.events.emit('update', { sound, target: this });
125
126 if (this.callback) {
127 this.callback(sound, this);
128 }
129 }
130
131 resize() {
132 const dpr = 2; // Always 2

Callers 2

constructorMethod · 0.95
MuteButtonClass · 0.95

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected