Intesting!
Do you know the X11 Atom API?
http://tronche.com/gui/x/xlib/window-information/XInternAtom.html used in: /src/gui/kernel/qdnd_x11.cpp
We may do it quite similar.
This way we can easily change new EngineMicrophone(group, m_pEffectsManager);
by new EngineMicrophone(MixxxAtom(group), m_pEffectsManager);
And work inside with the Atom IDs
MIxxxAtom() will look like that
typedef AtomID QString*
AtomID MixxxAtom(QString name) { AtomID = m_IDHash[name]; if (!AtomID) { AtomID = new QString(name); m_IDHash[name] = AtomID } return AtomID; }
What do you think?
Intesting!
Do you know the X11 Atom API?
http:// tronche. com/gui/ x/xlib/ window- information/ XInternAtom. html kernel/ qdnd_x11. cpp
used in:
/src/gui/
We may do it quite similar.
This way we can easily change e(group, m_pEffectsManager);
new EngineMicrophon
by e(MixxxAtom( group), m_pEffectsManager);
new EngineMicrophon
And work inside with the Atom IDs
MIxxxAtom() will look like that
typedef AtomID QString*
AtomID MixxxAtom(QString name) { IDHash[ name] = AtomID
AtomID = m_IDHash[name];
if (!AtomID) {
AtomID = new QString(name);
m_
}
return AtomID;
}
What do you think?