equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtMultimedia module of the Qt Toolkit. |
7 ** This file is part of the QtMultimedia module of the Qt Toolkit. |
8 ** |
8 ** |
118 \o The number of audio channels (typically one for mono |
118 \o The number of audio channels (typically one for mono |
119 or two for stereo) |
119 or two for stereo) |
120 \row |
120 \row |
121 \o Sample size |
121 \o Sample size |
122 \o How much data is stored in each sample (typically 8 |
122 \o How much data is stored in each sample (typically 8 |
123 or 16) |
123 or 16 bits) |
124 \row |
124 \row |
125 \o Sample type |
125 \o Sample type |
126 \o Numerical representation of sample (typically signed integer, |
126 \o Numerical representation of sample (typically signed integer, |
127 unsigned integer or float) |
127 unsigned integer or float) |
128 \row |
128 \row |
258 { |
258 { |
259 return d->channels; |
259 return d->channels; |
260 } |
260 } |
261 |
261 |
262 /*! |
262 /*! |
263 Sets the sampleSize to \a sampleSize. |
263 Sets the sample size to the \a sampleSize specified. |
264 */ |
264 */ |
265 |
265 |
266 void QAudioFormat::setSampleSize(int sampleSize) |
266 void QAudioFormat::setSampleSize(int sampleSize) |
267 { |
267 { |
268 d->sampleSize = sampleSize; |
268 d->sampleSize = sampleSize; |
269 } |
269 } |
270 |
270 |
271 /*! |
271 /*! |
272 Returns the current sampleSize value. |
272 Returns the current sample size value. |
273 */ |
273 */ |
274 |
274 |
275 int QAudioFormat::sampleSize() const |
275 int QAudioFormat::sampleSize() const |
276 { |
276 { |
277 return d->sampleSize; |
277 return d->sampleSize; |