Devise\Pages\Fields\Handlers\AudioFieldUpdated::filename PHP Method

filename() protected method

Creates the filename for this video path and format
protected filename ( FieldValues $values, string $format ) : string
$values FieldValues
$format string
return string
    protected function filename($values, $format)
    {
        $filepath = $values->original;
        $audioChannels = $values->audio_channels(2);
        $audioBitDepth = $values->audio_bit_depth(16);
        $info = $this->MediaPaths->isUrlPath($filepath) ? $this->MediaPaths->fileVersionInfoFromUrl($filepath) : $this->MediaPaths->fileVersionInfo($filepath);
        return $this->MediaPaths->makeRelativePath("{$info->versiondir}/{$info->filename}_{$audioChannels}_{$audioBitDepth}.{$format}");
    }