I am trying to save 16 bit 16 megabytes of PCM monochrome audio bytes to a wav file in a Windows 10 application.
NAudio normaly has a WavFileWriter, but it seems to have disappeared in the Windows 10 version. I can only find access to the new WaveFormat (16000, 16, 1); from https://www.nuget.org/packages/NAudio/1.7.3/
Is there a stream that I can use to create a Wav file or its bytes?
I suspect that NAudio removed WavFileWriter because there is now a substitute in the standard UWP API in the Windows.Media.Audio namespace. Now you should use the following:
MediaEncodingProfile.CreateWav(AudioEncodingQuality.High);
api:
, WaveFileWriter UWP, API File UWP, WaveFileWriter UWP.
WaveFileWriter
File
, UWP WAV AudioGraph, , , . , AudioEncodingQuality.Low WAV. ( )
AudioGraph
AudioEncodingQuality.Low
Source: https://habr.com/ru/post/1670925/More articles:How to use slash import using babel-jest? - babeljsHow to find out which packages are installed using pip - pythonCLGeocoder reverseGeocodeLocation возвращает метку с разными lat/long? (прилагается пример детской площадки) - iosGetting an exception using Google Play Services (Google Places API Android) with 10.2.0 - androidSQLAlchemy - using hybrid properties in a query - pythonFailed to set the expiration attribute of Hangfire. - c #Linux best practice to run and view another process - c ++How to rename / move an element and redefine even if they exist (for files, folders and links)? - file-ioHow is CTE (Common Table Expression) evaluated in HIVE - common-table-expressionPreventing Multiplication Expression in Sympy - pythonAll Articles