Added support for Raw/PCM audio

This commit is contained in:
N00MKRAD
2020-11-23 18:08:17 +01:00
parent 1d21ca4e97
commit 4d44461785
2 changed files with 14 additions and 6 deletions

View File

@@ -227,6 +227,8 @@ namespace Flowframes.IO
ShellFile shellFile = ShellFile.FromFilePath(path);
fps = (float)shellFile.Properties.System.Video.FrameRate.Value / 1000f;
Logger.Log("Detected FPS of " + Path.GetFileName(path) + " as " + fps + " FPS", true);
if (fps <= 0)
throw new Exception("FPS is 0.");
}
catch
{
@@ -359,7 +361,7 @@ namespace Flowframes.IO
public static string GetAudioFile (string basePath)
{
string[] exts = new string[] { "m4a", "ogg", "mp2", "mp3" };
string[] exts = new string[] { "m4a", "wav", "ogg", "mp2", "mp3" };
foreach(string ext in exts)
{