feat: true RMS dBFS level measurement for LevelMeterFab via getFloatTimeDomainData
This commit is contained in:
@@ -463,6 +463,18 @@ export class AudioPlayer {
|
||||
this.contextManager.getSpectrumAnalyzer().removeCallback(callbackId);
|
||||
}
|
||||
|
||||
getLevelDb(): number {
|
||||
return this.contextManager.getSpectrumAnalyzer().getLevelDb();
|
||||
}
|
||||
|
||||
startLevelAnimation(callbackId: string, callback: (db: number) => void): void {
|
||||
this.contextManager.getSpectrumAnalyzer().addLevelCallback(callbackId, callback);
|
||||
}
|
||||
|
||||
stopLevelAnimation(callbackId: string): void {
|
||||
this.contextManager.getSpectrumAnalyzer().removeLevelCallback(callbackId);
|
||||
}
|
||||
|
||||
// ==================== Private Methods ====================
|
||||
|
||||
private resetState(): void {
|
||||
|
||||
Reference in New Issue
Block a user