small fixes int32_t for samplepos