How do I mix with the new Audio API

  1. What do you want to achieve?
    Mix two audio players together into one stream.

  2. What is the issue?
    There is no Mixing Instance or anything

  3. What solutions have you tried so far?
    Search for instances on the Part

I’ve already written this StarterCharacterScript.

local listener = Instance.new("AudioListener")
local charHead = workspace.CurrentCamera
listener.Parent = charHead
local audiodeviceoutput = Instance.new("AudioDeviceOutput")
local wire = Instance.new("Wire")

audiodeviceoutput.Player = game.Players.LocalPlayer
audiodeviceoutput.Parent = charHead

wire.SourceInstance = listener
wire.TargetInstance = audiodeviceoutput
wire.Parent = charHead

(Edit: This uses the Audio API)

2 Likes

So two AudioPlayers into one AudioEmitter? Just have them wired up to the emitter and call play.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.