@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
29 lines (28 loc) • 1.11 kB
TypeScript
import { type IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
import { type FlowGraphContext } from "../../../flowGraphContext.js";
import { type FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
import { FlowGraphCachedOperationBlock } from "../flowGraphCachedOperationBlock.js";
import { type AbstractSound } from "../../../../AudioV2/abstractAudio/abstractSound.js";
/**
* @experimental
* A data block that reads the current volume of an Audio V2 sound.
*/
export declare class FlowGraphGetSoundVolumeBlock extends FlowGraphCachedOperationBlock<number> {
/**
* Input connection: The sound to read the volume from.
*/
readonly sound: FlowGraphDataConnection<AbstractSound>;
/**
* Constructs a new FlowGraphGetSoundVolumeBlock.
* @param config - optional configuration for the block
*/
constructor(config?: IFlowGraphBlockConfiguration);
/**
* @internal
*/
_doOperation(context: FlowGraphContext): number | undefined;
/**
* @returns class name of the block.
*/
getClassName(): string;
}