# AudioStreamWriter(ロブロックス クラス) > Writes audio samples from Luau buffers into an audio stream for custom synthesis. - URL:https://roblox.minecraft-okinawa.com/reference/classes/AudioStreamWriter/ - 公式:https://create.roblox.com/docs/reference/engine/classes/AudioStreamWriter - 受け継いでいるクラス:Instance ## プロパティ - `AudioStreamWriter.Layout: AudioChannelLayout`:The channel layout of the audio stream that the writer produces. - `AudioStreamWriter.SampleFormat: AudioSampleFormat`:The sample format of the audio data stored in the internal buffer. - `AudioStreamWriter.SampleRate: int`:The sample rate of the audio data, in Hertz. - `AudioStreamWriter.WindowSize: AudioWindowSize`:Controls the size of the internal ring buffer that stores audio samples before they are consumed by the audio engine. ## メソッド - `AudioStreamWriter:GetConnectedWires(pin: string): List`:Returns an array of Class.Wire|Wires that are connected to the specified pin. - `AudioStreamWriter:GetInputPins(): Array`:Gets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property. - `AudioStreamWriter:GetOutputPins(): Array`:Gets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property. - `AudioStreamWriter:Space(): int`:Returns the number of frames that can be written without dropping samples. - `AudioStreamWriter:Write(audioBuffer: Array): int`:Writes audio samples into the internal buffer for playback. ## イベント - `AudioStreamWriter.WiringChanged(connected: boolean, pin: string, wire: Wire, instance: Instance)`:Fires when another instance is connected to or disconnected from the AudioStreamWriter via a Wire. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)