freebsd-ports/audio/orpheus/files/patch-src-mixerctl.cc
Sergey Matveychuk 8360ab3d50 Orpheus is a light-weight text mode menu- and window-driven audio player
application for CDs and files in MP3 and Vorbis OGG format.

PR:		n/a
Submitted by:	Andrej Zverev <az@inec.ru>
2005-04-10 09:16:14 +00:00

11 lines
448 B
C++

--- src/mixerctl.cc Sat Feb 14 20:11:05 2004
+++ src/mixerctl.cc Sun Dec 12 22:08:37 2004
@@ -50,7 +50,7 @@
if((fd = ::open(devname.c_str(), O_RDWR)) != -1) {
if(ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devmask) != -1) {
- for(ct = ctVolume; ct != channeltype_end; (int) ct += 1) {
+ for(ct = ctVolume; ct != channeltype_end; ct = (mixerctl::channeltype) (ct + 1)) {
if((1 << (int) ct) & devmask) {
channels.insert(ct);
}