Clarify API/docs by introducing the audio "frame", and add helpers.
The frame is the interleaved set of one sample for each channel. Add some docs and some methods that make working with samples a bit more convenient. Adjusted QAudioBuffer to use these helper functions and terminology. Change-Id: I96db48e659561972d6de2aa19893d29f9a828cd3 Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
68079a5e22
commit
4d13a15bae
@@ -66,7 +66,7 @@ public:
|
||||
// Format related
|
||||
virtual QAudioFormat format() const = 0;
|
||||
virtual qint64 startTime() const = 0;
|
||||
virtual int sampleCount() const = 0;
|
||||
virtual int frameCount() const = 0;
|
||||
|
||||
// R/O Data
|
||||
virtual void *constData() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user