View Single Post
Old 31 October 2016, 13:01   #31
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 45
Posts: 2,536
I guess this would work. Looks odd, though.

I'd prefer having a simple global flag indicating that setting the repeat makes it start immediately if no sample is playing. This way, one can set repeat+replen alone for looping samples.

A good way to prevent pops - or any kind of race condition - would be to have some kind of strobe committing the changes. The structure can then be changed safely.
In addition, with this way several streams can be perfectly in sync, which is important for tracker music.
meynaf is offline  
 
Page generated in 0.04692 seconds with 9 queries