Bug 454198 - Audio broken on big endian archs
Audio broken on big endian archs
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: wildmidi (Show other bugs)
9
All Linux
low Severity low
: ---
: ---
Assigned To: Hans de Goede
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-06 09:38 EDT by Ian Chapman
Modified: 2008-07-26 02:08 EDT (History)
0 users

See Also:
Fixed In Version: 0.2.2-5.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-08 22:48:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Fix audio on big endian archs (447 bytes, patch)
2008-07-06 09:46 EDT, Ian Chapman
no flags Details | Diff

  None (edit)
Description Ian Chapman 2008-07-06 09:38:34 EDT
Description of problem:

When playing any midi files, it just generates static noise.


Version-Release number of selected component (if applicable):
wildmidi-0.2.2-4.fc9.ppc.rpm

How reproducible:

Play a .mid file

Steps to Reproduce:
1. Play .mid file
2.
3.
  
Actual results:

Audio output is like static noise

Expected results:

The .mid should play correctly.

Additional info:

See attached patch.
Comment 1 Ian Chapman 2008-07-06 09:46:50 EDT
Created attachment 311100 [details]
Fix audio on big endian archs

If you look at the patch it seems counter intuitive at first, because it sets
SND_PCM_FORMAT_S16_LE and this fixes the audio on big endian archs but I think
it's related to the byte order of how the sample data is represented internally
by wildmidi vs the byteorder the sound device is expecting when opened. When 
SND_PCM_FORMAT_S16 is used (on BE archs) it either causes the sample data to be
byteswapped when it shouldn't be, or not byteswapped when it should be. Sorry
if the explanation is as clear as mud! :( Anyway, this patch may not be the
best solution but wildmidi works correctly on this ppc machine with it applied
and it should still work for LE archs.
Comment 2 Fedora Update System 2008-07-07 15:11:21 EDT
wildmidi-0.2.2-5.fc9 has been submitted as an update for Fedora 9
Comment 3 Fedora Update System 2008-07-07 15:18:24 EDT
wildmidi-0.2.2-5.fc8 has been submitted as an update for Fedora 8
Comment 4 Fedora Update System 2008-07-08 22:48:28 EDT
wildmidi-0.2.2-5.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 5 Fedora Update System 2008-07-08 22:51:56 EDT
wildmidi-0.2.2-5.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 6 Fedora Update System 2008-07-26 02:08:09 EDT
wildmidi-0.2.2-5.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.