Changeset 846 for trunk/src/multimedia/audio/qaudioformat.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/multimedia/audio/qaudioformat.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 112 112 \o Description 113 113 \row 114 \o Frequency114 \o Sample Rate 115 115 \o Samples per second of audio data in Hertz. 116 116 \row … … 144 144 Values are initialized as follows: 145 145 \list 146 \o frequency() = -1147 \o channel s()= -1146 \o sampleRate() = -1 147 \o channelCount() = -1 148 148 \o sampleSize() = -1 149 149 \o byteOrder() = QAudioFormat::Endian(QSysInfo::ByteOrder) … … 225 225 226 226 /*! 227 Sets the frequency to \a frequency. 227 Sets the sample rate to \a samplerate Hertz. 228 229 \since 4.7 230 */ 231 232 void QAudioFormat::setSampleRate(int samplerate) 233 { 234 d->frequency = samplerate; 235 } 236 237 /*! 238 \obsolete 239 240 Use setSampleRate() instead. 228 241 */ 229 242 … … 234 247 235 248 /*! 236 Returns the current frequency value. 249 Returns the current sample rate in Hertz. 250 251 \since 4.7 252 */ 253 254 int QAudioFormat::sampleRate() const 255 { 256 return d->frequency; 257 } 258 259 /*! 260 \obsolete 261 262 Use sampleRate() instead. 237 263 */ 238 264 … … 243 269 244 270 /*! 245 Sets the channels to \a channels. 271 Sets the channel count to \a channels. 272 273 \since 4.7 274 */ 275 276 void QAudioFormat::setChannelCount(int channels) 277 { 278 d->channels = channels; 279 } 280 281 /*! 282 \obsolete 283 284 Use setChannelCount() instead. 246 285 */ 247 286 … … 252 291 253 292 /*! 254 Returns the current channel value. 293 Returns the current channel count value. 294 295 \since 4.7 296 */ 297 298 int QAudioFormat::channelCount() const 299 { 300 return d->channels; 301 } 302 303 /*! 304 \obsolete 305 306 Use channelCount() instead. 255 307 */ 256 308
Note:
See TracChangeset
for help on using the changeset viewer.