Skip to content

Commit f9175a6

Browse files
author
Marc365
committed
update for linux compatibility using wine
debugged on hardware that fails, sometimes the app was left corrupted or would crash exit when a failure happened new hardware recovery mode, it will continue recording when the hardware becomes available again new transparent button only mode new alternative tiny view with the timer only available when window is resized smaller the timer is now visually prioritized over the settings when the window shrinks new right click menu on the big button with transparent window toggle, shrink window toggle and exit options new opacity slider gadget added registry settings for opacity and transparent now swaps the help popup text for file name or stream location when the output has changed fix -quit command line wasn't finalizing Form1 properly added -exit command line option updated SaveRegistry() positions to account for multiple entry points removed some debug messages stopped empty path not legal message from happening minor refactoring and clean up
1 parent 3a8e0e4 commit f9175a6

File tree

19 files changed

+752
-362
lines changed

19 files changed

+752
-362
lines changed

Constants/Arg.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ public static class Arg
3333
public const string Start = "-start";
3434
public const string Stop = "-stop";
3535
public const string Quit = "-quit";
36+
public const string Exit = "-exit";
3637
}
3738
}

Constants/Def.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public static class Def
3131
public const string PipeName = "recorder-desktop";
3232
public const string DateStamp = " yyyy-MM-dd";
3333
public const string LameDll = "libmp3lame.dll";
34+
public const string LameResource = "DesktopRecorder." + LameDll;
3435
public const string TimeStamp = "hh':'mm':'ss'.'fffffff";
35-
public const string ShortStamp = "hh':'mm':'ss";
3636
public const string Font = "Microsoft Sans Serif";
3737
public const string True = "True";
3838
public const string False = "False";
@@ -64,10 +64,11 @@ public static class Def
6464
public const string Authorization = "Authorization: ";
6565
public const string Host = "Host: ";
6666
public const string Location = "Location: ";
67-
67+
68+
public const int MinWidth = 140;
6869
public const int ToggleHeight = 158;
6970
public const int ToolWidth = 335;
70-
public const int ShortWidth = 402;
71-
public const int ShortTimeWidth = 415;
71+
public const int ShortWidth = 286;
72+
public const int TinyWidth = 230;
7273
}
7374
}

Constants/Error.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static class Error
3434
public const string FileSystem = "File System Error";
3535
public const string Header = "Header Error";
3636
public const string Mp3 = "Mp3 Error";
37-
public const string Recording = "Recording Error";
37+
public const string Recording = "File Recording Error";
3838
public const string Socket = "Socket Error";
3939
public const string Startup = "Startup Error";
4040
public const string Stream = "Stream Error";

Constants/Reg.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ public static class Reg
3939
public const string HotSwap = "hotswap";
4040
public const string Left = "left";
4141
public const string Mode = "mode";
42+
public const string Opacity = "opacity";
4243
public const string Output = "output";
4344
public const string Overwrite = "overwrite";
4445
public const string StartMinimized = "start_minimized";
4546
public const string Stream = "stream";
4647
public const string Top = "top";
48+
public const string Transparent = "transparent";
4749
public const string UpdateFrequency = "update_frequency";
4850
public const string Verb = "verb";
4951
public const string Width = "width";

Constants/Title.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public static class Title
3030
public const string Record = "Record";
3131
public const string Stop = "Stop";
3232
public const string File = "File";
33+
public const string FileName = "File name";
3334
public const string Stream = "Stream";
35+
public const string StreamLocation = "Stream location";
3436
public const string SaveAs = "Save As";
3537
public const string FileSelector = "{0} files (*.{0})|*.{0}|All files (*.*)|*.*";
3638
public const string ServerResponse = "Server Response";

CoreAudioApi/AudioClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ 3. This notice may not be removed or altered from any source distribution.
2424
using NAudio;
2525
using System;
2626
using System.Runtime.InteropServices;
27+
using System.Windows.Forms;
2728

2829
namespace CoreAudioApi
2930
{

DesktopRecorderButton.PNG

-4.57 KB
Loading

Form1.Designer.cs

Lines changed: 206 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)