run() public method

public run ( ) : void
return void
        public void RequestThumbsAndWave(string filename)
        {
            taskThread.QueueThisUpPlease(() =>
            {
                var filenameThumb   = fileMapping.AddGetThumbnailFilename(filename);
                var filenameWave    = fileMapping.AddGetWaveFilenameDat(filename);
                var filenameWaveJpg = fileMapping.AddGetWaveFilenameJpg(filename);
                fileMapping.MakeSureDataFolderExists(filenameThumb);

                if (!File.Exists(filenameThumb))
                {
                    // generates the thumbnails
                    UiConsolePush(VidkaConsoleLogLevel.Info, "generating thumbs " + Path.GetFileName(filenameThumb));
                    var op2 = new ThumbnailExtraction(filename, filenameThumb);
                    op2.PleaseUnlockThisFile += dispatch_pleaseUnlockThisFile;
                    op2.run();
                    UiPushResult(op2);
                }
                if (ThumbnailsReady != null)
                {
                    ThumbnailsReady(filename, filenameThumb);
                }

                if (!File.Exists(filenameWaveJpg))
                {
                    // generates the waveform
                    UiConsolePush(VidkaConsoleLogLevel.Info, "generating wave " + Path.GetFileName(filenameWaveJpg));
                    var op3 = new WaveformExtraction(filename, filenameWave, filenameWaveJpg, true);
                    UiPushResult(op3);
                }
                if (WaveformReady != null)
                {
                    WaveformReady(filename, filenameWave, filenameWaveJpg);
                }
            });
        }
        public void RequestThumbsOnly(
            string filename,
            bool forceRegenerate = false)
        {
            taskThread.QueueThisUpPlease(() =>
            {
                var filenameThumb = fileMapping.AddGetThumbnailFilename(filename);
                fileMapping.MakeSureDataFolderExists(filenameThumb);

                if (!File.Exists(filenameThumb) || forceRegenerate)
                {
                    // generates the thumbnails
                    UiConsolePush(VidkaConsoleLogLevel.Info, "generating thumbs " + Path.GetFileName(filenameThumb));
                    var op2 = new ThumbnailExtraction(filename, filenameThumb);
                    op2.PleaseUnlockThisFile += dispatch_pleaseUnlockThisFile;
                    op2.run();
                    UiPushResult(op2);
                }
                if (ThumbnailsReady != null)
                {
                    ThumbnailsReady(filename, filenameThumb);
                }
            });
        }
        public void RequestThumbsAndWave(string filename)
        {
            taskThread.QueueThisUpPlease(() =>
            {
                var filenameThumb = fileMapping.AddGetThumbnailFilename(filename);
                var filenameWave = fileMapping.AddGetWaveFilenameDat(filename);
                var filenameWaveJpg = fileMapping.AddGetWaveFilenameJpg(filename);
                fileMapping.MakeSureDataFolderExists(filenameThumb);

                if (!File.Exists(filenameThumb)) {
                    // generates the thumbnails
                    UiConsolePush(VidkaConsoleLogLevel.Info, "generating thumbs " + Path.GetFileName(filenameThumb));
                    var op2 = new ThumbnailExtraction(filename, filenameThumb);
                    op2.PleaseUnlockThisFile += dispatch_pleaseUnlockThisFile;
                    op2.run();
                    UiPushResult(op2);
                }
                if (ThumbnailsReady != null)
                    ThumbnailsReady(filename, filenameThumb);

                if (!File.Exists(filenameWaveJpg)) {
                    // generates the waveform
                    UiConsolePush(VidkaConsoleLogLevel.Info, "generating wave " + Path.GetFileName(filenameWaveJpg));
                    var op3 = new WaveformExtraction(filename, filenameWave, filenameWaveJpg, true);
                    UiPushResult(op3);
                }
                if (WaveformReady != null)
                    WaveformReady(filename, filenameWave, filenameWaveJpg);
            });
        }
        public void RequestThumbsOnly(
			string filename,
			bool forceRegenerate = false)
        {
            taskThread.QueueThisUpPlease(() =>
            {
                var filenameThumb = fileMapping.AddGetThumbnailFilename(filename);
                fileMapping.MakeSureDataFolderExists(filenameThumb);

                if (!File.Exists(filenameThumb) || forceRegenerate)
                {
                    // generates the thumbnails
                    UiConsolePush(VidkaConsoleLogLevel.Info, "generating thumbs " + Path.GetFileName(filenameThumb));
                    var op2 = new ThumbnailExtraction(filename, filenameThumb);
                    op2.PleaseUnlockThisFile += dispatch_pleaseUnlockThisFile;
                    op2.run();
                    UiPushResult(op2);
                }
                if (ThumbnailsReady != null)
                    ThumbnailsReady(filename, filenameThumb);
            });
        }