To record audio data with a player and microphone:
TAudioPlayer* aPlayer=
TAudioPlayer::CreateDefaultAudioPlayer(aSequence,TAudioType::GetLinear16Bit44KHz()); TMicrophone* aMicrophone=
TMicrophone::CreateDefaultMicrophone(TAudioType::GetLinear16Bit44KHz()); // Connect the microphone to the player. TAudioOutputPortSurrogate* aMicOut = aMicrophone->CreateOutput(); TAudioInputPortSurrogate* aPlayerIn = aPlayer->CreateLeftInput(); aMicOut->ConnectTo(*aPlayerIn); aPlayer->AdviseWillRecord(); aMicrophone->Start(); aPlayer->Record(); //Call stop to end recording. aPlayer->Stop();