Don't use static variables in play_buffer

If we want to be be thread-safe, can't use static variables in functions.
Move them to player_data.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>