Fix some issues introduced with last commit.
The sound system does not allow to stream values > 2^20. Currently limiting the value, but this is not really optimal.