سؤال

I was looking into System.Media.SoundPlayer and NAudio, and AFAIK they only play WAVE streams. The WAVE file is composed of the pure PCM data plus a format header.

I don't want to provide this header in the WAVE format. I want to pass the parameters (bitrate, etc) programatically

هل كانت مفيدة؟

المحلول

As I said in the comment above, using the native Windows API (waveOutOpen, waveOutPrepareHeader, waveOutWrite, and so on), it is possible to play the waveform data of your choice. I make this an answer so that it can be accepted in case it actually is what the OP is looking for.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top