Name: Anonymous 2010-10-31 13:50
It is not possible to play and to record sound at the same time in bada 1.0.0 due to a defect. I hope that this defect will be fixed shortly. Although the defect exists, if you use a specific class and specific parameter, you can play and record sound simultaneously.
http://developer.bada.com/blog/?p=2047
void AIO::OnAudioInBufferIsFilled( Osp::Base::ByteBuffer* pData)
{
pData->Rewind();
__pO->WriteBuffer(*pData);
AudioOutState state= __pO->GetState();
if (state == AUDIOOUT_STATE_PREPARED)
{
__pO->Start();
}
else if (state== AUDIOOUT_STATE_STOPPED)
{
__pO->Start();
}
pData->Rewind();
__pI->AddBuffer(pData);
}http://developer.bada.com/blog/?p=2047