Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 11552 Details for
Bug 20320
fceultra ebuild update and patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
devdsp.diff
devdsp.diff (text/plain), 923 bytes, created by
Tony Murray
on 2003-05-06 00:11:09 UTC
(
hide
)
Description:
devdsp.diff
Filename:
MIME Type:
Creator:
Tony Murray
Created:
2003-05-06 00:11:09 UTC
Size:
923 bytes
patch
obsolete
>## All lines beginning with `## DP:' are a description of the patch. >## Fixes sound config to try /dev/dsp (instead of /dev/dsp0). > >--- fceu/drivers/common/unixdsp.c 2003-03-15 14:48:02.000000000 -0500 >+++ fceu/drivers/common/unixdsp.c 2003-04-08 22:10:11.000000000 -0400 >@@ -48,7 +48,10 @@ int InitUNIXDSPSound(int *rate, int bits > x=0; > do > { >- sprintf(buf,"/dev/dsp%d",x); >+ if (x == 0) >+ strncpy(buf,"/dev/dsp", sizeof buf); >+ else >+ snprintf(buf, sizeof buf, "/dev/dsp%d", x); > printf(" Trying %s...",buf); > dspfd=open(buf,O_WRONLY|O_NONBLOCK); > if(dspfd!=-1) break; >@@ -59,7 +62,10 @@ int InitUNIXDSPSound(int *rate, int bits > } > else > { >- sprintf(buf,"/dev/dsp%d",dev); >+ if (dev == 0) >+ strncpy(buf,"/dev/dsp", sizeof buf); >+ else >+ snprintf(buf, sizeof buf, "/dev/dsp%d", dev); > printf(" Opening %s...",buf); > dspfd=open(buf,O_WRONLY); > if(dspfd==-1) goto __disperror;
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 20320
:
11551
| 11552 |
12104