Navigation
API > API/Plugins > API/Plugins/MetasoundStandardNodes
References
| Module | MetasoundStandardNodes |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundStandardNodes/Public/MetasoundSampleCounter.h |
| Include | #include "MetasoundSampleCounter.h" |
Syntax
class FSampleCounter
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSampleCounter
(
const FSampleCounter& InSampleCounter |
|||
FSampleCounter
(
FSampleCount InNumSamples, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSampleCounter | FromTime
(
const FTime& InTime, |
Construct a sample counter with a sample count, time resolution, and sample rate. | |
| FSampleCount | Return the number of samples. | ||
| FSampleCount | GetNumSamples
(
FSampleRate InOtherSampleRate |
Return the number of samples which represent this time duration using a different sample rate. | |
| FSampleRate | Returns sample rate | ||
| void | SetNumSamples
(
const FTime& InTime |
Set the number of samples from time value (This is functionally discretization and will result in loss of precision) | |
| void | SetNumSamples
(
FSampleCount InNumSamples |
Set the number of samples. | |
| void | SetSampleRate
(
FSampleRate InSampleRate |
Set the sample rate of this object without changing the number of samples. | |
| FTime | ToTime () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FSampleCounter & | operator=
(
const FSampleCounter& InRHS |