summaryrefslogtreecommitdiff
path: root/audio/sox/patches/patch-aa
blob: 090adb375032a112cb0f567a57ea4e754e3985ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
*** sbdsp.c.orig	Thu Aug 18 06:11:01 1994
--- sbdsp.c	Mon Jan 27 02:47:53 1997
***************
*** 21,27 ****
  #include <i386/isa/sblast.h>
  #else
  #ifdef LINUXSOUND
! #include <linux/soundcard.h>
  #else
  #include <sys/sb.h>
  #endif
--- 21,27 ----
  #include <i386/isa/sblast.h>
  #else
  #ifdef LINUXSOUND
! #include <machine/soundcard.h>
  #else
  #include <sys/sb.h>
  #endif
***************
*** 78,84 ****
  	ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate);
  #else
  #if defined(LINUXSOUND)
! 	ioctl(fileno(ft->fp), SNDCTL_DSP_SPEED, ft->info.rate);
  #else
  	ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 0);
  	ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate);
--- 78,88 ----
  	ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate);
  #else
  #if defined(LINUXSOUND)
!   #if SOUND_VERSION >= 200
! 	ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, &ft->info.rate);
!   #else
! 	ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, ft->info.rate);
!   #endif
  #else
  	ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 0);
  	ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate);
***************
*** 148,154 ****
  #else
  #if defined(LINUXSOUND)
  	ioctl(fileno(ft->fp), SNDCTL_DSP_SYNC, 0);
! 	ioctl(fileno(ft->fp), SNDCTL_DSP_SPEED, ft->info.rate);
  #else
  	ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 1);
  	ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate);
--- 152,162 ----
  #else
  #if defined(LINUXSOUND)
  	ioctl(fileno(ft->fp), SNDCTL_DSP_SYNC, 0);
!   #if SOUND_VERSION >= 200
! 	ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, &ft->info.rate);
!   #else
! 	ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, ft->info.rate);
!   #endif
  #else
  	ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 1);
  	ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate);