Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 115750 Details for
Bug 173798
media-libs/libsndfile's file called sndfile-play.c has old OSS (the current being developed) function calls and should be replaced.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a patch that replaces the bad function calls with correct ones.
sndfile-play.patch (text/plain), 748 bytes, created by
Gaillard
on 2007-04-08 20:29:26 UTC
(
hide
)
Description:
a patch that replaces the bad function calls with correct ones.
Filename:
MIME Type:
Creator:
Gaillard
Created:
2007-04-08 20:29:26 UTC
Size:
748 bytes
patch
obsolete
>--- sndfile-play.c 2006-08-31 05:22:07.000000000 -0400 >+++ examples/sndfile-play.c 2007-04-08 14:51:21.000000000 -0400 >@@ -427,17 +427,17 @@ > } ; > > fmt = CPU_IS_BIG_ENDIAN ? AFMT_S16_BE : AFMT_S16_LE ; >- if (ioctl (fd, SOUND_PCM_SETFMT, &fmt) != 0) >+ if (ioctl (fd, SNDCTL_DSP_SETFMT, &fmt) != 0) > { perror ("linux_open_dsp_device : set format ") ; > exit (1) ; > } ; > >- if (ioctl (fd, SOUND_PCM_WRITE_CHANNELS, &channels) != 0) >+ if (ioctl (fd, SNDCTL_DSP_CHANNELS, &channels) != 0) > { perror ("linux_open_dsp_device : channels ") ; > exit (1) ; > } ; > >- if (ioctl (fd, SOUND_PCM_WRITE_RATE, &srate) != 0) >+ if (ioctl (fd, SNDCTL_DSP_SPEED, &srate) != 0) > { perror ("linux_open_dsp_device : sample rate ") ; > exit (1) ; > } ;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 173798
: 115750 |
115751