Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 311051 Details for
Bug 454109
Audio broken on big endian archs
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix audio on big endian archs
bigendianaudio.patch (text/plain), 877 bytes, created by
Ian Chapman
on 2008-07-04 18:05:06 UTC
(
hide
)
Description:
Patch to fix audio on big endian archs
Filename:
MIME Type:
Creator:
Ian Chapman
Created:
2008-07-04 18:05:06 UTC
Size:
877 bytes
patch
obsolete
>--- frozen-bubble.orig 2008-03-03 20:49:40.000000000 +0000 >+++ frozen-bubble 2008-07-04 19:00:13.000000000 +0100 >@@ -66,6 +66,8 @@ > use fbsyms; > use FBLE; > >+use Config; >+ > $| = 1; > > $TARGET_ANIM_SPEED = 20; # number of milliseconds that should last between two animation frames >@@ -281,7 +283,13 @@ > } > > sub init_sound() { >- $mixer = eval { SDL::Mixer->new(-frequency => 44100, -channels => 2, -size => 1024); }; >+ # Endian Test >+ if ($Config{byteorder} == 4321 || $Config{byteorder} == 87654321) { >+ $mixer = eval { SDL::Mixer->new(-frequency => 44100, -format => &AUDIO_S16MSB, -channels => 2, -size => 1024); }; >+ } >+ else { >+ $mixer = eval { SDL::Mixer->new(-frequency => 44100, -channels => 2, -size => 1024); }; >+ } > if ($@) { > $@ =~ s| at \S+ line.*\n||; > print STDERR "\nWarning: can't initialize sound (reason: $@).\n";
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 454109
: 311051