I encountered a problem while playing audio. When I try to play a file, I get the following error. I am sure that this file exists and is correct. I tried it with a player and it played. I receive this file as Byte from the server and then save it in a file. When I try to play this file, I notice that the file is deleted. Exactly when I use the Play method, it deletes this file.
Is it not possible to play a file through MemoryStream or Stream in general? If it does not exist, can it be implemented?
Error executing MCI command 'Status "D:\Programming\Projects\AzmoonKhan_Web_Avalonia\ExperimentReader.Desktop\bin\Debug\net8.0\temp\sounds\90f5ac0c-70e7-4009-871d-5a47632fff13.mp3" Length'. Error code: 275. Message: Cannot find the specified file. Make sure the path and filename are correct.'




Completely deletes the temp/sounds folder.