int SampleFrameSize { get; set; }

robot_2Generated
code_blocksInput

Description

The SampleFrameSize property of the SoundFile class represents the size of one sample frame in the audio file. This size is typically calculated as the product of the sample size and the number of channels, but it can vary depending on the audio format used.

Usage

To access the SampleFrameSize property, you need to have an instance of the SoundFile class. This property is read-only and provides an integer value representing the size of a single sample frame in bytes.

Example

// Example of accessing the SampleFrameSize property
SoundFile soundFile = SoundFile.Load("path/to/soundfile.wav");
int sampleFrameSize = soundFile.SampleFrameSize;

// Output the sample frame size
// Note: Replace 'path/to/soundfile.wav' with the actual path to your sound file.