DSD File Support for .dsf files

Does anybody have any idea how to get this
$if($eq(%_file_format%, DSF), $if($eq(%_sample_rate%,2822400),-DSD128, $if($eq(%_sample_rate%,5644800),-DSD256, $if($eq(%_sample_rate%,11289600),-DSD512,)))) to work for dsf files, I am getting nothing returned?

1 Like

Just a quick thought without looking at this closely… Try removing the space before “DSF”.

1 Like

Changed it to this $if($eq(%_file_format%,DSF),$if($eq(%_sample_rate%,2822400),-DSD128,$if($eq(%_sample_rate%,5644800),-DSD256,$if($eq(%_sample_rate%,11289600),-DSD512,))))
Still returns nothing.

The variable name should be %_format% I think. Not %_file_format%

2 Likes

Thanks, it’s working perfectly now!

$if($eq_any(%_extension%,dsf,dff),$if($eq(%_sample_rate%,2822400),-DSD64,$if($eq(%_sample_rate%,5644800),-DSD128,$if($eq(%_sample_rate%,11289600),-DSD256,$if($eq(%_sample_rate%,22579200),-DSD512,)))))
2 Likes