How loop a sound seamlessly in Firemonkey (FMX)?


By Anthony Burg How do you loop a sound seamlessly using the TMediaPlayer in Firemonkey (using XE6, C++ Builder)?

What I am doing so far is using a TTimer which checks

if (MediaPlayer->CurrentTime >= MediaPlayer->Media->Duration)
MediaPlayer->CurrentTime = 0;
MediaPlayer->Play ();

but this doesn’t create a seamless loop, even when the TTimer’s Interval is set to 1.

Any ideas? …read more

Via: StackOverflow

Comments are closed.