Revert "Use unsigned int in samples attributes."

This reverts commit 1bc51c137ea53dcb5df221c22ff25cda249aa80b.

We must keep our API and ABI untouched.