John Nash wrote on 11/03/2014 11:07 AM: > Thank you for fast reply. Files when played on any media player do not > have this sound.. I am playing dynamic number of files based on Invite > header value and no matter how many files in playlist this sound is > there at last. Like if I add file1, file2, file3. All three files play > fine but at the end of file3 there is a hummmmmm sound (Not exactly a > noise more like a constant dial tone). > > If I do not use setStopped and dlg-->bye() on noAudio. This sound will > play on and on like a constant beep till call is disconnected.
might be some audio buffer e.g. in amplaylist that is not cleared and which is used over and over (when it should just generate zeros) Stefan > > Log is like > [#7f552615a700/20968] [read, AmAudioFile.cpp:413] DEBUG: 0-stuffing > packet: adding 10 bytes (packet size=20) > [#7f552615a700/20968] [get, AmPlaylist.cpp:75] DEBUG: get: gotoNextItem > [#7f552615a700/20968] [get, AmPlaylist.cpp:75] DEBUG: get: gotoNextItem > [#7f552615a700/20968] [read, AmAudioFile.cpp:413] DEBUG: 0-stuffing > packet: adding 10 bytes (packet size=20) > [#7f552615a700/20968] [get, AmPlaylist.cpp:75] DEBUG: get: gotoNextItem > [#7f552615a700/20968] [read, AmAudioFile.cpp:413] DEBUG: 0-stuffing > packet: adding 10 bytes (packet size=20) > [#7f552615a700/20968] [get, AmPlaylist.cpp:75] DEBUG: get: gotoNextItem > [#7f552615a700/20968] [get, AmPlaylist.cpp:75] DEBUG: get: gotoNextItem > [#7f552615a700/20968] [gotoNextItem, AmPlaylist.cpp:56] DEBUG: > posting AmAudioEvent::noAudio event! > [#7f55077d1700/20985] [processingCycle, AmSession.cpp:373] DEBUG: vv > S > [c2888de8527843baa26ac53151beef02_b2b-1|2690D531-54574BB900017E4B-24203700] > Early, running, 0 UACTransPending, 0 usages vv > [#7f55077d1700/20985] [process, PrecodedAnnounce.cpp:246] DEBUG: > PrecodedDialog::process > [#7f55077d1700/20985] [reply, AmBasicSipDialog.cpp:583] DEBUG: > reply: transaction found! > [#7f55077d1700/20985] [onReplyOut, AmOfferAnswer.cpp:431] DEBUG: > after 487 reply to INVITE: resetting OA state > > > > > > > > > On Mon, Nov 3, 2014 at 3:26 PM, Stefan Sayer <[email protected] > <mailto:[email protected]>> wrote: > > John Nash wrote on 11/03/2014 10:40 AM: > > I am trying to play multiple files in early_announce app using > > myplaylist.addToPlaylist(new AmPlaylistItem(file1,NULL)); ....and so > > on. It works as expected except at the end before "NoAudio" event > > there is a constant humming sound. > > > > I am making sure that SetStopped() is called just when we get > noAudio > > event but that sound won't go. > > do you get the humming sound before or after something appears in the > debug log that says gotoNextItem or so? > > are you sure that the sound is not in the file that is played, > possibly another chunk in the wav where the program that you saved it > with saved some other information into (and which sems regards as > audio)? is the length in the file header correct? when the file is > loaded, there's some debug info printed out, check if the size there > corresponds to the expected size (length*2*8000 or so). sox or > audacity may help here as well. > > also try with other files, e.g. the ones that come with the sems > source. does that happen with all of them? > > > hth > Stefan > > _______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
