<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 4, 2013, at 5:44 AM, Shrishty Deorari <<a href="mailto:shrishty.deorari@vvdntech.com">shrishty.deorari@vvdntech.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div style="">what i did exacty in my main file is : .......... </div><div style=""> RTPSink* audioSink;</div>
<div style=""> .........</div><div style=""> ...... </div><div style=""> Groupsock rtcpGroupsock(*env, destinationAddress, rtcpPort, ttl);</div>
<div> rtcpGroupsock.multicastSendOnly(); // we're a SSM source</div><div><br></div><div style=""> <b> audioSink = MPEG4GenericRTPSink::createNew(*env, &rtpGroupsock, 96);</b></div>
<div style="">so should i not use MPEG4GenericRTPSink directly here.</div><div style="">the error which is coming during Make is:</div><div style=""><br></div><div style=""><br></div><div style=""><br></div><div style=""><div><font face="times new roman, serif">t<i>estAACAudioStreamer.cpp:42: error: no matching function for call to ‘MPEG4GenericRTPSink::createNew(UsageEnvironment&, Groupsock*, int)’</i></font></div>
<div><i><font face="times new roman, serif">../liveMedia/include/MPEG4GenericRTPSink.hh:31: note: candidates are: static MPEG4GenericRTPSink* MPEG4GenericRTPSink::createNew(UsageEnvironment&, Groupsock*, u_int8_t, u_int32_t, const char*, const char*, const char*, unsigned int)</font></i></div>
<div><i><font face="times new roman, serif">make[1]: *** [testAACAudioStreamer.o] Error 1</font></i></div></div></div></blockquote><div><br></div>Is it not obvious from this error what the problem is? Obviously, you are not calling "MPEG4GenericRTPSink::createNew()" correctly. Look at "liveMedia/include/MPEG4GenericRTPSink.hh", and you will see why your call to "MPEG4GenericRTPSink::createNew()" is incorrect.</div><div><br></div><div>You need to pass more parameters to "MPEG4GenericRTPSink::createNew()". Specifically (using the example code in "ADTSAudioFileServerMediaSubsession.cpp":</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>MPEG4GenericRTPSink::createNew(envir(), rtpGroupsock,
96,
adtsSource->samplingFrequency(),
"audio", "AAC-hbr", adtsSource->configStr(),
adtsSource->numChannels());</div> <br><div>where "adtsSource" is a "ADTSAudioFileSource" that you have previously created by:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>ADTSAudioFileSource* adtsSource = ADTSAudioFileSource::createNew(envir(), inputFileName);</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>