Design of a Flexible Crossfade/Level Controller Algorithm for Portable Media Platforms