📜  hyperx quadcast s uk - C# (1)

📅  最后修改于: 2023-12-03 15:15:46.023000             🧑  作者: Mango

HyperX Quadcast S UK - C#

HyperX Quadcast S UK is a professional-grade USB microphone that is perfect for streamers, content creators, and anyone who needs high-quality audio for their audio recordings or live streams. With its multiple built-in features, the HyperX Quadcast S UK is a great choice for those who are looking for a versatile and high-quality microphone.

Features

  • Four polar patterns: cardioid, bidirectional, omnidirectional, and stereo
  • Easy on-mic controls for mute, mic gain, headphone volume, and mic monitoring
  • Dynamic RGB lighting with customizable colors and effects
  • Anti-vibration shock mount to reduce unwanted noise from your desk or mic stand
  • Tap-to-mute sensor with an LED indicator lets you mute your mic without fumbling around
  • Compatible with PC, Mac, PlayStation 4, and PlayStation 5

How to use

To use the HyperX Quadcast S UK with C#, you'll need to install the Windows SDK for UWP (Universal Windows Platform). Once you have that set up, you can use the following code snippet to initialize the microphone:

using Windows.Media.Devices;
using Windows.Media.Core;
using Windows.Media.Capture;

MediaCaptureInitializationSettings settings = new MediaCaptureInitializationSettings
{
    StreamingCaptureMode = StreamingCaptureMode.Audio,
    MediaCategory = MediaCategory.Communications,
    AudioProcessing = AudioProcessing.Default,
    AudioDeviceId = MediaDevice.GetDefaultAudioCaptureId(AudioDeviceRole.Default)
};

MediaCapture capture = new MediaCapture();
await capture.InitializeAsync(settings);

MediaEncodingProfile profile = MediaEncodingProfile.CreateWav(AudioEncodingQuality.High);
StorageFolder folder = ApplicationData.Current.LocalFolder;
StorageFile file = await folder.CreateFileAsync("recording.wav", CreationCollisionOption.GenerateUniqueName);

await capture.StartRecordToStorageFileAsync(profile, file);

This code initializes the microphone with the highest recording quality, creates a new file to store the recording, and starts recording the audio. You can also use this code to stream live audio to your audience.

Conclusion

Overall, the HyperX Quadcast S UK is a high-quality microphone that is great for streamers, content creators, and anyone who needs professional-grade audio. With its many features and easy-to-use controls, it's a great choice for anyone who wants to improve the audio quality of their recordings and live streams.