anchor.diff:  	else
   		var/sound/S = sound(get_sfx(input))
   		receiver.playsound_local(turf_source, input, vol, vary, frequency, falloff, channel, pressure_affected, S)
  ->>>>>>> cecf676684... [Ready] Outputs datum (#41535)
   
   //kept for legacy support and uploaded admin sounds
   /mob/proc/playsound_local(turf/turf_source, soundin, vol as num, vary, frequency, falloff, channel = 0, pressure_affected = TRUE, sound/S)
  
positive.code: 
  	var/turf/turf_source = get_turf(source)
  
  <<<<<<< HEAD
  =======
  	if (!turf_source)
  		return
  
  >>>>>>> cecf676684... [Ready] Outputs datum (#41535)
  	//allocate a channel if necessary now so its the same for everyone
  	channel = channel || open_sound_channel()
  
   	// Looping through the player list has the added bonus of working for mobs inside containers
  	var/maxdistance = (world.view + extrarange)
  	var/list/listeners = GLOB.player_list
  	if(!ignore_walls) //these sounds don't carry through walls
  		listeners = listeners & hearers(maxdistance,turf_source)
  	for(var/P in listeners)
  		var/mob/M = P
  <<<<<<< HEAD
  		if(!M || !M.client)
  			continue
  		var/distance = get_dist(M, turf_source)
  
  		if(distance <= maxdistance)
  			var/turf/T = get_turf(M)
  
  			if(T && T.z == turf_source.z)
  				M.playsound_local(turf_source, soundin, vol, vary, frequency, falloff, channel, pressure_affected, S)
  =======
  		if(get_dist(M, turf_source) <= maxdistance)
  			sound_or_datum(M, turf_source, input, vol, vary, frequency, falloff, channel, pressure_affected)
  	for(var/P in SSmobs.dead_players_by_zlevel[z])
  
negative.code: 		next_channel = 1
  
  /mob/proc/stop_sound_channel(chan)
  	SEND_SOUND(src, sound(null, repeat = 0, wait = 0, channel = chan))
  
  /client/proc/playtitlemusic(vol = 85)
  	set waitfor = FALSE
  	UNTIL(SSticker.login_music) //wait for SSticker init to set the login music
  
  	if(prefs && (prefs.toggles & SOUND_LOBBY))
  		SEND_SOUND(src, sound(SSticker.login_music, repeat = 0, wait = 0, volume = vol, channel = CHANNEL_LOBBYMUSIC)) // MAD JAMS
  
  /proc/get_rand_frequency()
  	return rand(32000, 55000) //Frequency stuff only works with 45kbps oggs.
  