What is the best workflow for gapless track switching? #1840
-
Hi guys, Initially it was set up to load in the relevant file every time I wanted to switch tracks, and then inputting the file into a copier.begin function. I then did a File.avaliable() to see if the track was finished, and then File.seek(0) if it had. This played fine, looped okay (still need to sort out the popping but I see there are plenty of tips on that front already), but like I said there was an obvious gap between one track and the next. Looping however, had no gap. I could just put all the sounds I want into one long track, and then seek to the position of the sound I need, but that doesn't really seem like the most elegant solution. Perhaps I am meant to have a copier per file, and only enter the relevant copier.copy based on the device state? I've done my best to glean information from the documentation but there is alot of assumed knowledge which I am lacking.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Did you check if there is some silence in your files at the end or beginning. |
Beta Was this translation helpful? Give feedback.
Did you check if there is some silence in your files at the end or beginning.
The other issue is that you do not reopen the processing when you start a new file. Wav files start with a header and if the decoder is not in starting state the header is treated as audio data: this will lead to some undefined noise.