Return error on invalid number of channels

Also add missing copy flag when copying new frames.
Add argument pointer remap function

Arguments pointers were not remaped to new allocated buffer.
Make better resize calulation
Fix wrong calculated number of frames
Add new sample to example file
Add data load functions

Sound data can now be loaded with different bit resolutions and endianesses.
Add bit format to sample command
Modify example file and set sample to 8 bit signed