--Music interface

function music_class:Update(id, volume, reset)
	--Update volume
	volume = tonumber(volume)
	if volume ~= nil and volume ~= self.music_volume then
		self.music.Volume = volume
		self.music_volume = volume
	end

	--Update id
	id = tostring(id)
	if id ~= self.music_id or reset then
		self.music:Stop()
		self.music.SoundId = "rbxassetid://"..id
		self.music_id = id
		self.music:Play()
	end
end

return music_class
