delphi - How loop a sound seamlessly in Firemonkey (FMX)? -


how loop sound seamlessly using tmediaplayer in firemonkey (using xe6, c++ builder)?

what doing far using ttimer checks

if (mediaplayer->currenttime >= mediaplayer->media->duration) {   mediaplayer->currenttime = 0;   mediaplayer->play (); } 

but doesn't create seamless loop, when ttimer's interval set 1.

any ideas?

i not familiar component assume, in windows, wrapper around directshow. means never able (frame) seamless playback because of overhead of starting/stopping graph. if can live small hiccup, best results (and better code) if there onlastframe() event, in can reset frame counter first frame (or currenttime zero).


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -