mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
rules
This commit is contained in:
parent
a9b4f8e83b
commit
e6efc04756
8494 changed files with 495610 additions and 0 deletions
222
.cursor/rules/roblox/reference/engine/classes/AudioAnalyzer.yaml
Normal file
222
.cursor/rules/roblox/reference/engine/classes/AudioAnalyzer.yaml
Normal file
|
|
@ -0,0 +1,222 @@
|
|||
# This file is automatically generated. Please don't edit it manually.
|
||||
# To submit a bug report on the content, see
|
||||
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
|
||||
|
||||
name: AudioAnalyzer
|
||||
type: class
|
||||
memory_category: Internal
|
||||
summary: |
|
||||
Takes measurements from audio streams that are connected to it via one or more
|
||||
`Class.Wire|Wires`.
|
||||
description: |
|
||||
`Class.AudioAnalyzer` takes measurements from audio streams that are wired to
|
||||
it through `Class.Wire`. It provides a single **Input** pin but does not
|
||||
produce any output streams. Note that all audio processing is disabled on the
|
||||
server in order to conserve resources; Properties and methods of
|
||||
`Class.AudioAnalyzer` return empty or zero results when used from server
|
||||
scripts.
|
||||
code_samples: []
|
||||
inherits:
|
||||
- Instance
|
||||
descendants: []
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
properties:
|
||||
- name: AudioAnalyzer.PeakLevel
|
||||
summary: |
|
||||
The loudest volume observed during the last audio buffer.
|
||||
description: |
|
||||
The loudest volume observed during the last audio buffer. This property
|
||||
changes more often than the framerate and does not fire changed events. On
|
||||
the server, this property is always `0`.
|
||||
code_samples: []
|
||||
type: float
|
||||
tags:
|
||||
- ReadOnly
|
||||
- NotReplicated
|
||||
deprecation_message: ''
|
||||
security:
|
||||
read: None
|
||||
write: None
|
||||
thread_safety: ReadSafe
|
||||
category: Metering
|
||||
serialization:
|
||||
can_load: false
|
||||
can_save: true
|
||||
capabilities:
|
||||
- Audio
|
||||
- name: AudioAnalyzer.RmsLevel
|
||||
summary: |
|
||||
The root-mean-square average volume observed during the last audio buffer.
|
||||
description: |
|
||||
The root-mean-square average volume observed during the last audio buffer.
|
||||
This property is generally more stable than
|
||||
`Class.AudioAnalyzer.PeakLevel|PeakLevel` but it may not capture momentary
|
||||
volume spikes. This property changes more often than the framerate and
|
||||
does not fire changed events. On the server, this property is always `0`.
|
||||
code_samples: []
|
||||
type: float
|
||||
tags:
|
||||
- ReadOnly
|
||||
- NotReplicated
|
||||
deprecation_message: ''
|
||||
security:
|
||||
read: None
|
||||
write: None
|
||||
thread_safety: ReadSafe
|
||||
category: Metering
|
||||
serialization:
|
||||
can_load: false
|
||||
can_save: true
|
||||
capabilities:
|
||||
- Audio
|
||||
- name: AudioAnalyzer.SpectrumEnabled
|
||||
summary: |
|
||||
Enables usage of `Class.AudioAnalyzer:GetSpectrum|GetSpectrum`.
|
||||
description: |
|
||||
Enables usage of `Class.AudioAnalyzer:GetSpectrum|GetSpectrum()`. If
|
||||
`false`, `Class.AudioAnalyzer:GetSpectrum|GetSpectrum()` returns an empty
|
||||
array, but the CPU overhead of the `Class.AudioAnalyzer` is dramatically
|
||||
reduced. This means that if you are only analyzing the **volume** of an
|
||||
audio stream, you can disable this property to improve performance.
|
||||
code_samples: []
|
||||
type: boolean
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
security:
|
||||
read: None
|
||||
write: None
|
||||
thread_safety: ReadSafe
|
||||
category: Metering
|
||||
serialization:
|
||||
can_load: true
|
||||
can_save: true
|
||||
capabilities:
|
||||
- Audio
|
||||
- name: AudioAnalyzer.WindowSize
|
||||
summary: ''
|
||||
description: ''
|
||||
code_samples: []
|
||||
type: AudioWindowSize
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
security:
|
||||
read: None
|
||||
write: None
|
||||
thread_safety: ReadSafe
|
||||
category: State
|
||||
serialization:
|
||||
can_load: true
|
||||
can_save: true
|
||||
capabilities:
|
||||
- Audio
|
||||
methods:
|
||||
- name: AudioAnalyzer:GetConnectedWires
|
||||
summary: |
|
||||
Returns an array of `Class.Wire|Wires` that are connected to the specified
|
||||
pin.
|
||||
description: |
|
||||
Returns an array of `Class.Wire|Wires` that are connected to the specified
|
||||
pin. `Class.AudioAnalyzer` has one "Input" pin.
|
||||
code_samples: []
|
||||
parameters:
|
||||
- name: pin
|
||||
type: string
|
||||
default:
|
||||
summary: ''
|
||||
returns:
|
||||
- type: Instances
|
||||
summary: ''
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
security: None
|
||||
thread_safety: Unsafe
|
||||
capabilities:
|
||||
- Audio
|
||||
- name: AudioAnalyzer:GetInputPins
|
||||
summary: ''
|
||||
description: ''
|
||||
code_samples: []
|
||||
parameters: []
|
||||
returns:
|
||||
- type: Array
|
||||
summary: ''
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
security: None
|
||||
thread_safety: Unsafe
|
||||
capabilities:
|
||||
- Audio
|
||||
- name: AudioAnalyzer:GetOutputPins
|
||||
summary: ''
|
||||
description: ''
|
||||
code_samples: []
|
||||
parameters: []
|
||||
returns:
|
||||
- type: Array
|
||||
summary: ''
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
security: None
|
||||
thread_safety: Unsafe
|
||||
capabilities:
|
||||
- Audio
|
||||
- name: AudioAnalyzer:GetSpectrum
|
||||
summary: |
|
||||
Returns the frequency spectrum of the last audio buffer.
|
||||
description: |
|
||||
Returns the frequency spectrum of the last audio buffer, as an array of
|
||||
numbers. The elements of the array are root-mean-square volume levels,
|
||||
evenly spaced from 0 hertz to 24,000 hertz. If any of the analyzer's
|
||||
inputs come from an `Class.AudioDeviceInput`, or this method is used from
|
||||
a server script, it returns an empty array.
|
||||
code_samples: []
|
||||
parameters: []
|
||||
returns:
|
||||
- type: Array
|
||||
summary: ''
|
||||
tags:
|
||||
- CustomLuaState
|
||||
deprecation_message: ''
|
||||
security: None
|
||||
thread_safety: Unsafe
|
||||
capabilities:
|
||||
- Audio
|
||||
events:
|
||||
- name: AudioAnalyzer.WiringChanged
|
||||
summary: |
|
||||
Fires when another instance is connected to or disconnected from the
|
||||
`Class.AudioAnalyzer` via a `Class.Wire`.
|
||||
description: |
|
||||
Event that fires after a `Class.Wire` becomes connected or disconnected,
|
||||
and that `Class.Wire` is now or was previously connected to a pin on the
|
||||
`Class.AudioAnalyzer` and to some other wirable instance.
|
||||
code_samples: []
|
||||
parameters:
|
||||
- name: connected
|
||||
type: boolean
|
||||
default:
|
||||
summary: |
|
||||
Whether the instance got connected or disconnected.
|
||||
- name: pin
|
||||
type: string
|
||||
default:
|
||||
summary: |
|
||||
The pin on the `Class.AudioAnalyzer` that the `Class.Wire` targets.
|
||||
- name: wire
|
||||
type: Wire
|
||||
default:
|
||||
summary: |
|
||||
The `Class.Wire` between the `Class.AudioAnalyzer` and the other
|
||||
instance.
|
||||
- name: instance
|
||||
type: Instance
|
||||
default:
|
||||
summary: |
|
||||
The other instance that is or was connected through the `Class.Wire`.
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
security: None
|
||||
capabilities:
|
||||
- Audio
|
||||
callbacks: []
|
||||
Loading…
Add table
Add a link
Reference in a new issue