Motor Sınıfı
AudioPlayer
*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.
Özet
Özellikler
Asset:ContentId |
Yöntemler
GetConnectedWires(pin: string):{Wire} |
GetWaveformAsync(timeRange: NumberRange,samples: number):{any} |
Olaylar
WiringChanged(connected: boolean,pin: string,wire: Wire,instance: Instance):RBXScriptSignal |
Kod Örnekleri
Cihazda Ses Çıkışı
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()API Referansı
Özellikler
Asset
AudioPlayer.Asset:ContentId
AssetId
Yöntemler
GetConnectedWires
GetWaveformAsync
Parametreler
Dönüşler
Olaylar