23 #include "flowsystem.h"
25 #include "kdatarequest_impl.moc"
29 KDataRequest_impl::KDataRequest_impl()
35 KDataRequest_impl::~KDataRequest_impl()
40 void KDataRequest_impl::streamInit()
44 void KDataRequest_impl::streamEnd()
48 void KDataRequest_impl::calculateBlock(
unsigned long samples)
50 long blockSize = samples * 4;
52 if(m_lastBlockSize != blockSize)
55 emit newBlockSize(blockSize);
57 m_outBlock =
new unsigned char[blockSize];
59 emit newBlockPointer((
long) m_outBlock);
61 m_lastBlockSize = blockSize;
64 convert_stereo_2float_i16le(samples, left, right, m_outBlock);
75 void KDataRequest_impl::goOn()
77 _node()->requireFlow();
80 REGISTER_IMPLEMENTATION(KDataRequest_impl);