Changeset 846 for trunk/demos/spectrum/app/utils.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/demos/spectrum/app/utils.cpp
r769 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) … … 50 50 qint64 audioLength(const QAudioFormat &format, qint64 microSeconds) 51 51 { 52 return(format.frequency() * format.channels() * (format.sampleSize() / 8))52 qint64 result = (format.frequency() * format.channels() * (format.sampleSize() / 8)) 53 53 * microSeconds / 1000000; 54 result -= result % (format.channelCount() * format.sampleSize()); 55 return result; 54 56 } 55 57
Note:
See TracChangeset
for help on using the changeset viewer.