From dbb4ad0b2ae82fcfd8763118933c54b054732d9b Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 3 Sep 2017 17:19:21 +0200 Subject: [PATCH] Setup/Sounds * change extension of the temporary audio files for easier use with the supplied converter scripts. --- setup/tools/filegen/soundfiles.func.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup/tools/filegen/soundfiles.func.php b/setup/tools/filegen/soundfiles.func.php index 8d41f83a..cd31578b 100644 --- a/setup/tools/filegen/soundfiles.func.php +++ b/setup/tools/filegen/soundfiles.func.php @@ -26,10 +26,8 @@ if (!CLI) DB::Aowow()->selectCell('SELECT 1'); // keep mysql busy or it may go away } - if (stristr($filePath, '.wav')) // expected file.wav.ogg - $filePath .= '.ogg'; - else // expected file.mp3.mp3 - $filePath .= '.mp3'; + // expect converted files as file.wav_ or file.mp3_ + $filePath .= '_'; // just use the first locale available .. there is no support for multiple audio files anyway foreach (CLISetup::$expectedPaths as $locStr => $__)