-
Notifications
You must be signed in to change notification settings - Fork 443
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
Basic app that displays a melspectrogram generated from an audio file #395
Conversation
Samples/AudioPreprocessing/AudioPreprocessing/Model/PreprocessModel.cs
Outdated
Show resolved
Hide resolved
Samples/AudioPreprocessing/AudioPreprocessing/Model/PreprocessModel.cs
Outdated
Show resolved
Hide resolved
Samples/AudioPreprocessing/AudioPreprocessing/Model/PreprocessModel.cs
Outdated
Show resolved
Hide resolved
Samples/AudioPreprocessing/AudioPreprocessing/Model/PreprocessModel.cs
Outdated
Show resolved
Hide resolved
Samples/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/MainWindow.xaml.cs
Outdated
Show resolved
Hide resolved
Samples/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/MainWindow.xaml.cs
Outdated
Show resolved
Hide resolved
Samples/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/MainWindow.xaml.cs
Outdated
Show resolved
Hide resolved
Samples/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/MainWindow.xaml.cs
Outdated
Show resolved
Hide resolved
Samples/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/MainWindow.xaml.cs
Outdated
Show resolved
Hide resolved
...s/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/Model/PreprocessingModel.cs
Outdated
Show resolved
Hide resolved
...s/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/Model/PreprocessingModel.cs
Outdated
Show resolved
Hide resolved
...s/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/Model/PreprocessingModel.cs
Outdated
Show resolved
Hide resolved
...s/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/Model/PreprocessingModel.cs
Outdated
Show resolved
Hide resolved
...s/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/Model/PreprocessingModel.cs
Outdated
Show resolved
Hide resolved
...s/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/Model/PreprocessingModel.cs
Outdated
Show resolved
Hide resolved
...s/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/Model/PreprocessingModel.cs
Outdated
Show resolved
Hide resolved
...s/AudioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing/Model/PreprocessingModel.cs
Outdated
Show resolved
Hide resolved
...udioPreprocessing/WinUI/AudioPreprocessing/AudioPreprocessing (Package)/Package.appxmanifest
Outdated
Show resolved
Hide resolved
var initializeWithWindowWrapper = Marshal.GetTypedObjectForIUnknown(picker_unknown, typeof(IInitializeWithWindow)) as IInitializeWithWindow; | ||
Debug.Assert(initializeWithWindowWrapper != null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A cast throws an exception if it fails:
var initializeWithWindowWrapper = (IInitializeWithWindow)Marshal.GetTypedObjectForIUnknown(picker_unknown, typeof(IInitializeWithWindow));
It's probably better than doing as
and then asserting (and it seems from GetTypedObjectForIUnknown
docs that it always returns a IInitializeWithWindow
or throws an exception, so the assertion seems to always succeed?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me.
Samples/AudioPreprocessing/WinUI/AudioPreprocessing/
Currently, the button SaveFile and the textbox below it (that displays the path to which the image is saved) do not work with these changes.