Crash fixed: when some packets lost, sample_time are not consistent. Now buffer are padding automatically.
Made structural changes to @celon's bug fix.
Search and replaced variables with old C++ style uppercased variables to C style lowercase.
Search and replaced incorrect source headers.
Merge pull request #32 from trenskow/dev

v1.3.2