Thursday, 15 January 2015

java - Padding silence at the end of wav file to 160 octet frame -



java - Padding silence at the end of wav file to 160 octet frame -

i have issue in playing of wav files player sends rtp stream on network. lastly byte of wave file sent padded 00 00 00… create 172 byte packet. these padding causes click sound @ end of file when heard. avoid click sound, need pad wave files quiet (instead of 00 00 00). padding needs in such way creates total 160 octet frame @ end of file avoid player adding zeroes.

i need write little utility programme so. have explored java sound api , have pretty much found out append wav file file or create new wav file writing bits output stream.

i need help on how write quiet end of wav file create total 160 octet frame. also, can't pad 0s add together quiet should write 0xff create silence?

kindly assist? thanks.

the pcm value quiet 0!

i don't know rtp streaming, so, take scepticism. suspect problem isn't padding (if string of 0's), transition actual wav padding.

if wav sounding @ end, abrupt transition 0 problem. may need provide sort of volume tapering in place of abrupt jump 0 values.

does decoding of rtp provide clean way recognize end of wav transmission?

java file-io wav outputstream javasound

No comments:

Post a Comment