Arduino support: reduce stack required
get samples_per_frame from hdr_frame_samples Signed-off-by: zhangtl <tongliangzhang@bestechnic.com>