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