Получение звукового сигнала динамика и затем потоковая передача его

Я должен был бы сказать +1 для JodaTime. В дополнение к парсингу Joda делает примерно каждую связанную с датой операцию лучше.

7
задан Esteban Küber 1 September 2009 в 18:48
поделиться

1 ответ

On Windows XP this isn't trivial at all because there's no way of intercepting the output signal without writing an audio filter driver (which is not somethign for the faint of heart).

On Windows Vista and above, you can capture the output of the audio engine by using the WASAPI APIs (built into Windows so they're free) and initializing an audio client with the AUDCLNT_STREAMFLAGS_LOOPBACK flag. This will give you a capture stream that's hooked to the output of the audio engine.

You can then package up that audio and send it to the other machine and render it with whatever audio rendering API you want.

I don't know how to do the equivilant on OSX though :(.

3
ответ дан 7 December 2019 в 16:45
поделиться
Другие вопросы по тегам:

Похожие вопросы: