author | wimpie <wimpie> | 2005-01-04 01:31:53 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:31:53 (UTC) |
commit | 42638ffd708a5236ad9a1f06a40b9d8b7919277c (patch) (side-by-side diff) | |
tree | 687d61c6e2d5ddd20dff42cf6e1b18afbe81633f /libopie2/opiemm/osoundsystem.cpp | |
parent | 0f3d74b472817e6b4f9d80adc122281b84629c1f (diff) | |
download | opie-42638ffd708a5236ad9a1f06a40b9d8b7919277c.zip opie-42638ffd708a5236ad9a1f06a40b9d8b7919277c.tar.gz opie-42638ffd708a5236ad9a1f06a40b9d8b7919277c.tar.bz2 |
CONTROL file :changed VERSION string
Diffstat (limited to 'libopie2/opiemm/osoundsystem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiemm/osoundsystem.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libopie2/opiemm/osoundsystem.cpp b/libopie2/opiemm/osoundsystem.cpp index 17e5cb0..13b26e6 100644 --- a/libopie2/opiemm/osoundsystem.cpp +++ b/libopie2/opiemm/osoundsystem.cpp @@ -289,34 +289,32 @@ void OMixerInterface::setVolume( const QString& channel, int left, int right ) if ( _channels.contains( channel ) ) { int result = ioctl( _fd, MIXER_WRITE( _channels[channel] ), &volume ); if ( result == -1 ) { owarn << "Can't set volume: " << strerror( errno ) << oendl; } else { if ( result & 0xff != left ) { owarn << "Device adjusted volume from " << left << " to " << (result & 0xff) << oendl; } } } } int OMixerInterface::volume( const QString& channel ) const { int volume; if ( _channels.contains( channel ) ) { if ( ioctl( _fd, MIXER_READ( _channels[channel] ), &volume ) == -1 ) { owarn << "Can't get volume: " << strerror( errno ) << oendl; } else return volume; } return -1; } - - |