SFR 465783 Custom ringtone only plays 500ms

Set the timeout of the playback to be based on the size of the buffer -
i.e. how long we expect the plaback to take.  Rather than a hardcoded
number that might be (as it was in this case) too small.