I am currently developing a new QML Image type, that should receive and display Spout textures. I have already created a Spout sender, which works fine. But the receiver just won´t connect.
As I am bound to use Qt / QML, I only have the option of using the Spout 2 dll. Here is in short the commands I am using:
SPOUTHANDLE m_spoutptr = nullptr;
m_spoutptr = GetSpout(); <-- Works fine
m_spoutptr->SetDX9(false); <-- true or false doesn´t change a thing, left it at false
qDebug()<< "Current senders: " << m_spoutptr->GetSenderCount(); <--Shows 1 sender, is correct char senderName; int maxSize = 64; int index = 0; // or based on GetSenderCount m_spoutptr->GetSenderName(index, senderName, maxSize); qDebug()<< "SenderName:" << senderName; <-- Shows correct sender name unsigned int width = 500, height = 500; m_spoutptr->CreateReceiver(senderName,width,height); <-- Does always return false, regardless of when or how often I call that function.
And this is my problem, the CreateReceiver just won´t work. It shouldn´t be a problem with the senderName, because it is taken from the SpoutLibrary function itself…
One thing that I noticed is that AFTER ending my session with
m_spoutptr->ReleaseReceiver(); // Release the sender
m_spoutptr->Release(); // Release the Spout library instance
There are always these console logs:
Has someone experience with combining QT / QML and Spout? Please, every help would be welcome!