Saturday, 15 March 2014

java - Ogg audio file clicks upon looping - LIBGDX -



java - Ogg audio file clicks upon looping - LIBGDX -

i have ogg file loaded sound class. set loop , runs ok hear click when starts play on again. sound in barely 7 seconds long.

is there way prepare because quite annoying?

there undoubtedly big discontinuity in signal between starting moment , ending moment. java clip constructed, there no way counteract know of.

i recommend editing sound in audacity seek , create 2 ends more similar. easiest dodge have both ends taper silence--but leaves gap.

the other possibility writing own clip , adding provision allows grade of overlap of 2 edges. then, can add together tapers in audacity , have tapered parts overlap. similar how sound editing ("splicing") done in daw.

that bit of work though! have done , work well, month or 3 away, still, releasing sound library. programme yourself, read bytes array, converting pcm. then, can utilize targetdataline illustration of interface allows reading progressive info (it overkill, read() method key). in read, create provision starting lerp (linear interpolation) of pcm info @ overlap point.

if means of dealing issue comes up, happy larn it!

java libgdx javasound

No comments:

Post a Comment