Quote from: Terry on November 07, 2024, 06:35:13 AMThere are two ways to send an audio stream to a streaming server. The sample project is one of them.
But it still needs to be attached to a Player and then output.
Is there any way to capture only the input audio source but not play output?
// obtain the stream mixer internal to the selected WASAPI device
m_nStreamMixerUniqueID = m_audioDjAPI.StreamMixerGetIdFromOutput (m_nWasapiDevice);
m_audioDjAPI.StreamOutputDeviceSet(m_nStreamMixerUniqueID, -1);
QuoteThere is one more thing that I am confused about the WasapiMixAndClone sample project.
Why a control can initial more than 4 players? The three extra Players in the sample program seem to have no effect.
// init the DJ Studio control by instancing an adequate number of players:
// 2 for playing sound files from disk and 5 for attaching input devices
short nPlayers = 2 + 5;
nPlayers = m_audioDjAPI.InitSoundSystem(nPlayers, m_nWasapiDevice, m_nWasapiDevice, m_nWasapiDevice, 0);