public static function packSampleBlock($samples, $bitDepth) {
        $sampleBlock = '';
        foreach($samples as $sample) {
            $sampleBlock .= self::packSample($sample, $bitDepth);
        }

        return $sampleBlock;
    }
public static function packSampleBlock($samples, $bitDepth) {
        $sampleBlock = '';
        foreach($samples as $sample) {
            $sampleBlock .= self::packSample($sample, $bitDepth);
        }

        return $sampleBlock;
    }
public static function packSampleBlock ( $ samples , $ bitDepth ) { $ sampleBlock = '' ; foreach ( $ samples as $ sample ) { $ sampleBlock .= self :: packSample ( $ sample , $ bitDepth ) ; } return $ sampleBlock ; }
Packs an array of numeric channel samples to a binary sample block.

@param array $samples  (Required) The array of channel sample values. Expects float values for 32 bits and integer otherwise.
@param int $bitDepth  (Required) The bits per sample to encode with.
@return string  The encoded binary sample block.
Packs an array of numeric channel samples to a binary sample block .