Skip to contentSkip to conversation

: aplay has endian issues

ALSA - utils 0001312 [email protected] 1 participant 1 message Aug 5, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1312>
======================================================================
Reported By: ChrisWhite
Assigned To:
======================================================================

Project:                    ALSA - utils
Issue ID:                   1312
Category:                   aplay/arecord
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             08-05-2005 07:18 CEST
Last Modified:              08-05-2005 19:55 CEST

======================================================================
Summary: aplay has endian issues
Description:
It appears that play uses BE specific formating when playing back by default. As alsa seems to have a default SND_PCM_FORMAT_S16 which switches to the correct native endian, I'm not sure why that's not used as the default instead of endian specific definitions.
======================================================================

----------------------------------------------------------------------
Clemens Ladisch - 08-05-05 18:26
----------------------------------------------------------------------
If the sample formats of the file and the device do not match, the ALSA library can convert them on the fly.

How does your aplay command look like?

----------------------------------------------------------------------
ChrisWhite - 08-05-05 19:55
----------------------------------------------------------------------
It seems I misunderstood the process. My hardware did not support the sample format sent to it, which was why it was failing. I do know that you can override the format sent, but in this instance I was wondering if there was a more automated way to accomplish such a task. IE, if it cannot support the sample endian, it would convert it accordingly. I see MPlayer does that, maybe code could be borrowed from there.

as for the command, I simply said aplay file.mp3.

Issue History
Date Modified Username Field Change
======================================================================
08-05-05 07:18 ChrisWhite New Issue
08-05-05 09:30 Clemens LadischNote Added: 0005663
08-05-05 18:08 ChrisWhite Note Added: 0005669
08-05-05 18:26 Clemens LadischNote Added: 0005670
08-05-05 19:55 ChrisWhite Note Added: 0005672
======================================================================

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf