View Single Post
Old 31 October 2016, 12:01   #31
meynaf
68k wisdom
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon (France)
Age: 44
Posts: 2,365
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.04730 seconds with 9 queries