Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot configure a custom sound because space in path? #73

Open
Webmarco opened this issue Feb 3, 2016 · 0 comments
Open

Cannot configure a custom sound because space in path? #73

Webmarco opened this issue Feb 3, 2016 · 0 comments

Comments

@Webmarco
Copy link

Webmarco commented Feb 3, 2016

There is no sirene attached to my system. When I try to configure a custom build sound which is located at C:\Temp\Sirene.wav, the following error is logged:

C:\Program Files (x86)\Siren of Shame\Sox\sox.exe FAIL formats: can't open input file `van': No such file or directory

2016-02-03 12:32:08,467 [1] ERROR SirenOfShame.Program [(null)] - Global error
System.IO.FileNotFoundException: Could not find file 'C:\Users\Marco van\AppData\Local\Temp\sox\8e6652c5-707e-4661-8bdf-8d8b68e2d833.wav'.
File name: 'C:\Users\Marco van\AppData\Local\Temp\sox\8e6652c5-707e-4661-8bdf-8d8b68e2d833.wav'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at SoxLib.Helpers.DeleteFileStream..ctor(String fileName)
at SoxLib.Sox.Convert(Stream input, ConvertOptions options)
at SirenOfShame.Lib.Services.AudioFileService.ConvertToWav(String sourceFileName, String destinationFileName, Boolean highQuality)
at SirenOfShame.Lib.Services.SoundService.CopyOrConvertToWav(String sourceFileNameAndPath, String destinationFileNameAndPath)
at SirenOfShame.Lib.Services.SoundService.AddSound(SirenOfShameSettings settings, String fileNameAndPath, String fileNameAndExtension)
at SirenOfShame.Configuration.ConfigureSounds.AddSound(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2016-02-03 12:32:08,475 [1] INFO SirenOfShame.Lib.ExceptionMessageBox [(null)] - OperatingSystem: Microsoft Windows NT 6.2.9200.0
2016-02-03 12:32:08,475 [1] INFO SirenOfShame.Lib.ExceptionMessageBox [(null)] - DotNetVersion: 4.0.30319.34209
2016-02-03 12:32:08,475 [1] INFO SirenOfShame.Lib.ExceptionMessageBox [(null)] - SosVersion: 2.3.10
2016-02-03 12:32:08,475 [1] INFO SirenOfShame.Lib.ExceptionMessageBox [(null)] - SoftwareInstanceId: 4406
2016-02-03 12:32:08,475 [1] INFO SirenOfShame.Lib.ExceptionMessageBox [(null)] - DeviceConnected: False
2016-02-03 12:32:08,476 [1] INFO SirenOfShame.Lib.ExceptionMessageBox [(null)] - ErrorDate: 2/3/2016 12:32:08 PM
2016-02-03 12:32:08,476 [1] INFO SirenOfShame.Lib.ExceptionMessageBox [(null)] - ErrorMessage: Could not find file 'C:\Users\Marco van Dorst\AppData\Local\Temp\sox\8e6652c5-707e-4661-8bdf-8d8b68e2d833.wav'.
2016-02-03 12:32:08,476 [1] INFO SirenOfShame.Lib.ExceptionMessageBox [(null)] - StackTrace: System.IO.FileNotFoundException: Could not find file 'C:\Users\Marco van\AppData\Local\Temp\sox\8e6652c5-707e-4661-8bdf-8d8b68e2d833.wav'.

Looks like the application cannot handle a space in a directory name, there is a space between 'Marco' and 'van' in the path
Is this a bug or am I supposed to configure something somewhere?

@Webmarco Webmarco changed the title Cannot configure a custom sound Cannot configure a custom sound because space in path? Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant