How can I capture / redirect the sound created by, say:
Console.Beep(400, 1000);
Either in some byte buffer, or directly in the wav file will be fine.
I searched, but found ways to redirect text output, not sounds.
You cannot redirect the sound.
Console.Beep() is implemented by calling the Windows API Beep() function , which calls the sound card hardware, if possible.
Console.Beep()
Windows API Beep() function
You have several options:
I think the last one is the best choice.
Source: https://habr.com/ru/post/1484180/More articles:Using non-continuous integers as identifiers in cells or structures in Matlab - performanceReturning a value without an explicit return statement - javascriptExternal web interface for C ++ application - c ++Jar files for Google Play Java Services Documents and Sources - androidThe scope of the class in the domain layer - c #Java.lang.NullPointerException in doInBackground puts HashMap in ArrayList - androidError trying to install Node Express - node.jsAdd custom button in TinyMCE in Joomla 2.5 - joomlaIs it possible to remove transparent pixels from a bitmap in android - androidHow to group data by day with kernel data? - iosAll Articles