def get_pos():
    mixer._mixer_init_check()
    if _pos_time < 0:
        return -1

    ticks = 1000 * _pos / _channels / _frequency / ((_format & 0xff) >> 3)
    if not Mix_PausedMusic():
        ticks += SDL_GetTicks() - _pos_time
    return int(ticks)
Converts a python boolean into a string '1'/'0' for storage in SimpleDB.
dataset/ETHPy150Open los-cocos/cocos/cocos/audio/pygame/music.py/get_pos--crossover with--dataset/ETHPy150Open saymedia/python-simpledb/simpledb/models.py/BooleanField.encode