You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used your SimpleAudioPlayer for Xamarin.Forms application and it works perfectly. Recently I started working on the WPF application that has shared code with that Xamarin.Forms application. While each audio stream loads to a player on application start, a very short snippet (like 0.1 sec) of each .mp3 file is played. There may be an issue with resources, because I am getting these sounds from a resources project (which works perfectly with Xamarin.Forms). I tried using the WPF version of your NuGet package but the result was exact same. Thank you in advance!
EDIT: After investigating the problem I found out that the issue may be in MediaPlayer itself, since this SimpleAudioPlayer is based on MediaPlayer for WPF. I tried loading .mp3 files in bare MediaPlayer and I got the exact same outcome, short snippet playing on Open(uri) method.
The text was updated successfully, but these errors were encountered:
kristijan-boskovic
changed the title
[WPF] Short snippets of sounds produced on loading
[WPF] Short snippets of sounds play on application start
Mar 31, 2020
Thanks for the reply. Actually I found that moving the MediaPlayer setup out of the MainWindow constructor and into a separate play function worked, in case this helps anyone.
I used your SimpleAudioPlayer for Xamarin.Forms application and it works perfectly. Recently I started working on the WPF application that has shared code with that Xamarin.Forms application. While each audio stream loads to a player on application start, a very short snippet (like 0.1 sec) of each .mp3 file is played. There may be an issue with resources, because I am getting these sounds from a resources project (which works perfectly with Xamarin.Forms). I tried using the WPF version of your NuGet package but the result was exact same. Thank you in advance!
EDIT: After investigating the problem I found out that the issue may be in MediaPlayer itself, since this SimpleAudioPlayer is based on MediaPlayer for WPF. I tried loading .mp3 files in bare MediaPlayer and I got the exact same outcome, short snippet playing on Open(uri) method.
The text was updated successfully, but these errors were encountered: