libsidplayfp / sidplayfp

Console SID/MUS player
GNU General Public License v2.0
34 stars 8 forks source link

WAV file extension is appended #10

Closed maxim-zhao closed 2 years ago

maxim-zhao commented 2 years ago

The docs say:

\<name> IS NOT checked for or appended with a legal wav file extension.

This used to be true, but the current code does this:

title.append(WavFile::extension());

Can you make it do one or the other? Ideally, it might add the extension only if the passed filename doesn't already have it.

drfiemost commented 2 years ago

Fixed with the above commit, now it adds the extension only if not already provided.

maxim-zhao commented 2 years ago

Thanks!