Enlightenment CVS committal
Author : tsauerbeck
Project : misc
Module : eplayer
Dir : misc/eplayer/src/output/oss
Modified Files:
oss.c
Log Message:
Added some debugging messages.
===================================================================
RCS file: /cvsroot/enlightenment/misc/eplayer/src/output/oss/oss.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- oss.c 24 Oct 2003 11:38:49 -0000 1.4
+++ oss.c 30 Nov 2003 01:08:47 -0000 1.5
@@ -38,22 +38,29 @@
else if (bits == 16)
format = bigendian ? AFMT_S16_BE : AFMT_S16_LE;
- if (ioctl(fd, SNDCTL_DSP_SETFMT, &format) == -1)
+ if (ioctl(fd, SNDCTL_DSP_SETFMT, &format) == -1) {
+ debug(DEBUG_LEVEL_CRITICAL, "OSS: Cannot set format!\n");
return 0;
+ }
/* set mono/stereo mode */
tmp = channels - 1;
- if (ioctl(fd, SNDCTL_DSP_STEREO, &tmp) == -1)
+ if (ioctl(fd, SNDCTL_DSP_STEREO, &tmp) == -1) {
+ debug(DEBUG_LEVEL_CRITICAL, "OSS: Cannot set channels!\n");
return 0;
+ }
/* set samplerate */
tmp = rate;
- if (ioctl(fd, SNDCTL_DSP_SPEED, &tmp) == -1)
+ if (ioctl(fd, SNDCTL_DSP_SPEED, &tmp) == -1) {
+ debug(DEBUG_LEVEL_CRITICAL, "OSS: Cannot set samplerate!\n");
return 0;
+ }
if (tmp != rate)
- printf("OSS: Requested samplerate = %i, using %i\n",
- rate, tmp);
+ debug(DEBUG_LEVEL_WARNING,
+ "OSS: Requested samplerate = %i, using %i\n",
+ rate, tmp);
return 1;
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs