> And the AudioFrameSource main code is like this:
> void AudioFrameSource::doGetNextFrame()
> {
>
> CamerManager::GetInstance()->GetAudioFrame(“test”,(char*)fTo,fMaxSize,&fFrameSize,&fNumTruncatedBytes);
> fPresentationTime.tv_sec=usec/1000;
> fPresentationTime.tv_usec = usec%1000;
> usec+=2
> I used live555 to stream g711, My code is like this:
> RTPSink* AudioOnDemandMediaSubsession::createNewRTPSink(Groupsock*
> rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource*
> inputSource)
> {
>char const* mimeType=”PCMU”;
> unsigned char payloadFormatCode=0;
> int
I used live555 to stream g711, My code is like this:
RTPSink* AudioOnDemandMediaSubsession::createNewRTPSink(Groupsock*
rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource*
inputSource)
{
char const* mimeType=”PCMU”;
unsigned char payloadFormatCode=0;
int sampleFreque