GAudio.GATSoundBank.SizeOfShortestSample C# (CSharp) Method

SizeOfShortestSample() public method

public SizeOfShortestSample ( ) : int
return int
        public int SizeOfShortestSample()
        {
            int smallest = int.MaxValue;

            foreach( GATSampleInfo info in _sampleInfos )
            {
                if( info.SamplesPerChannel < smallest )
                {
                    smallest = info.SamplesPerChannel;
                }
            }

            return smallest;
        }