~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to src/msw/mediactrl_am.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2007-11-06 18:25:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106182513-809agqds6igh7mqo
Tags: 2.8.6.1-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.6.1.tar.bz2, renamed debian to debian-upstream.
* Provide a get-orig-source target to do the repackaging.
* Fix "substvar-source-version-is-deprecated" lintian warnings.
* Remove duplicate Description field in debian/control.
* Add "\" at the end of line 8 in debian/python-wxtools.menu to fix
  "bad-test-in-menu-item" lintian error.
* Provide .xpm icons to fix "menu-icon-not-in-xpm-format" lintian errors,
  changed Icon field in debian/python-wxtools.menu.
* Fix "wrong-name-for-upstream-changelog" lintian warnings.
* Remove "Application;" from Categories field in debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Switch "Apps" to "Applications" in debian/python-wxtools.menu to fix
  "menu-item-uses-apps-section" lintian warnings.
* Drop the icon extension from debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Add dpatch support.
* Add "WX_CONFIG" patch.
* debian/rules:
  - added .xpm icons to install-gtk-py-tools target
  - added "docs/changes.txt" to dh_installchangelogs in binary-common target
  - added "\" at the end of "install-examples install-msw-dev
    install-msw-dbg install-headers-msw" line in .PHONY

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Author:      Ryan Norton <wxprojects@comcast.net>
5
5
// Modified by:
6
6
// Created:     01/29/05
7
 
// RCS-ID:      $Id: mediactrl_am.cpp,v 1.9 2006/10/09 12:56:26 ABX Exp $
 
7
// RCS-ID:      $Id: mediactrl_am.cpp 49027 2007-10-03 22:36:29Z VZ $
8
8
// Copyright:   (c) Ryan Norton
9
9
// Licence:     wxWindows licence
10
10
/////////////////////////////////////////////////////////////////////////////
1966
1966
    }
1967
1967
 
1968
1968
    // Volume conversion from Greg Hazel
1969
 
    double dVolume = (double)lVolume / 125;
 
1969
    double dVolume = (double)lVolume / 100;
1970
1970
 
1971
1971
    // convert to 0 to 1
1972
1972
    dVolume = pow(10.0, dVolume/20.0);
1993
1993
    // convert to -100db to 0db
1994
1994
    dVolume = 20 * log10(dVolume);
1995
1995
    // scale to -10000 to 0
1996
 
    lVolume = (long)(125 * dVolume);
 
1996
    lVolume = (long)(100 * dVolume);
1997
1997
 
1998
1998
    HRESULT hr = GetAM()->put_Volume( lVolume );
1999
1999
    if(FAILED(hr))