Skip to content

Commit

Permalink
Custom definitions for AudioAnalyzer. (#1180)
Browse files Browse the repository at this point in the history
Added custom definitions for both `GetSpectrum()` and `Changed`.
  • Loading branch information
Neohertz authored Feb 24, 2024
1 parent e2ed7f7 commit 391cbd1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/customDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ interface Attachment extends Instance {
WorldCFrame: CFrame;
}

interface AudioAnalyzer extends Instance {
/**
* 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.
* @returns number[512]
*/
GetSpectrum(this: AudioAnalyzer): Array<number>;
}

interface AvatarEditorService extends Instance {
GetAvatarRules(this: AvatarEditorService): AvatarRules;
GetBatchItemDetails(
Expand Down

0 comments on commit 391cbd1

Please sign in to comment.