AudioDeviceOutput 오디오 스트림을 스피커나 헤드폰과 같은 물리적 하드웨어 장치에 렌더링하도록 수락합니다.그것은 입력 핀을 제공하여 Wires.모든 오디오 스트림이 케이블로 연결된 AudioDeviceOutput에 들립니다.
코드 샘플
Outputting Audio to Device
local audioPlayer: AudioPlayer = Instance.new("AudioPlayer")
audioPlayer.Parent = workspace
audioPlayer.AssetId = "rbxassetid://9112854440"
local deviceOutput = Instance.new("AudioDeviceOutput")
deviceOutput.Parent = workspace
local wire = Instance.new("Wire")
wire.Parent = workspace
wire.SourceInstance = audioPlayer
wire.TargetInstance = deviceOutput
audioPlayer:Play()
속성
메서드
이벤트
WiringChanged
연결되거나 연결 해제된 Wire 후 발생하는 이벤트로, Wire 는 현재 또는 이전에 AudioDeviceOutput 및 다른 연결 가능한 인스턴스에 고정되었거나 고정되었습니다.
매개 변수
인스턴스가 연결되었거나 연결 해제되었는지 여부.
타겟 AudioDeviceOutput 에 있는 핀은 다음과 같습니다.The pin on the that the Wire targets.
Wire 와 다른 인스턴스 사이의 AudioDeviceOutput.