Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 173798
Collapse All | Expand All

(-)sndfile-play.c (-3 / +3 lines)
Lines 427-443 Link Here
427
		} ;
427
		} ;
428
428
429
	fmt = CPU_IS_BIG_ENDIAN ? AFMT_S16_BE : AFMT_S16_LE ;
429
	fmt = CPU_IS_BIG_ENDIAN ? AFMT_S16_BE : AFMT_S16_LE ;
430
	if (ioctl (fd, SOUND_PCM_SETFMT, &fmt) != 0)
430
	if (ioctl (fd, SNDCTL_DSP_SETFMT, &fmt) != 0)
431
	{	perror ("linux_open_dsp_device : set format ") ;
431
	{	perror ("linux_open_dsp_device : set format ") ;
432
	    exit (1) ;
432
	    exit (1) ;
433
  		} ;
433
  		} ;
434
434
435
	if (ioctl (fd, SOUND_PCM_WRITE_CHANNELS, &channels) != 0)
435
	if (ioctl (fd, SNDCTL_DSP_CHANNELS, &channels) != 0)
436
	{	perror ("linux_open_dsp_device : channels ") ;
436
	{	perror ("linux_open_dsp_device : channels ") ;
437
		exit (1) ;
437
		exit (1) ;
438
		} ;
438
		} ;
439
439
440
	if (ioctl (fd, SOUND_PCM_WRITE_RATE, &srate) != 0)
440
	if (ioctl (fd, SNDCTL_DSP_SPEED, &srate) != 0)
441
	{	perror ("linux_open_dsp_device : sample rate ") ;
441
	{	perror ("linux_open_dsp_device : sample rate ") ;
442
		exit (1) ;
442
		exit (1) ;
443
		} ;
443
		} ;

Return to bug 173798