[Interest] is it ok to push audio on a background thread, not a timer?

Thiago Macieira thiago.macieira at intel.com
Tue May 19 04:55:27 CEST 2020


On Monday, 18 May 2020 19:33:03 PDT David M. Cotter wrote:
> >> Specifically: both i_qGeneratorP and i_qOutputP are allocated there. I
> >> think they're the only Qt objects use within the new thread?
> > 
> > If you say so, but I can't confirm that you've done the right thing since
> > I
> > can't see those classes
> 
> they are both QObjects, and are allocated with "new" during i_auP->Start()

Ok, that would be in the started thread.

> > Note that you do initialise the i_auP pointer in your constructor's
> > initialisation list
> which is not a QObject, it's my own wrapper class

Irrelevant what it derives from. Are you saying that this calls a function 
that returned null?

I repeat my request for a compileable example.

> no.  25 years ago, we use "i_" to indicate "instance (member) variables" in
> the "THINK Class Library" i've had that habit ever since

Most people use "m_" for that... No matter, it was just surprising?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products





More information about the Interest mailing list