ref: 920bf43d54347217b79e6825d41c7ae6a85a510b
parent: fa59247eb1355ffd84fa8b02533a877635e66019
author: robs <robs>
date: Sun Nov 19 15:52:36 EST 2006
Fix wav file handler discarding the last PCM sample in certain circumstances. Add support for 24-bit PCM raw, wav, & flac files. Add more tests.
--- a/Changelog
+++ b/Changelog
@@ -35,15 +35,11 @@
o Fix nul file hander ignoring other format options if rate
option has not been given. (robs)
o Fix synth length accuracy. (robs)
- o Fix broken audio when using synth as follows:
- sox -t nul /dev/null -c 1 output.wav synth 1 sine
- (robs)
- o Fix broken audio when using deemph as follows:
- sox -t nul /dev/null -c 1 output.wav synth 1 sine deemph
- (robs)
- o Fix broken audio when using vibro as follows:
- sox -t nul /dev/null -c 1 output.wav synth 1 sine vibro 20
- (robs)
+ o Fix broken audio when downmixing with any of the following
+ effects: synth, deemph, vibro. (robs)
+ o Fix wav file handler discarding the last PCM sample in certain
+ circumstances. (robs)
+ o Add support for 24-bit PCM raw, wav, & flac files. (robs)
sox-12.18.2
-----------
--- a/sox.1
+++ b/sox.1
@@ -276,8 +276,8 @@
European countries and it's gaining popularity because of its
quality. It usually is CPU intensive to work with GSM audio data.
.TP 10
-\fB-b/-w/-l/-d\fR
-The sample data size is in bytes, 16-bit words, 32-bit long words,
+\fB-b/-w/-3/-l/-d\fR
+The sample data size is in bytes, 16-bit words, 3-byte (24-bit) words, 32-bit long words,
or 64-bit double long (long long) words.
.SH FILE TYPES
.I SoX
--- a/src/tests.sh
+++ b/src/tests.sh
@@ -18,8 +18,8 @@
ub ) formatText="unsigned byte" ;;
uw ) formatText="unsigned word" ;;
raw) formatText="float"; formatFlags="-f -l" ;;
- au ) formatFlags="-s -b" ;;
- wav) formatFlags="-u -b" ;;
+ au ) formatFlags="-s" ;;
+ Wav) formatFlags="-u -b" ;;
esac
}
@@ -44,13 +44,25 @@
format1=ub
rate=8012
-convertToAndFrom sb sw sl al uw raw
+convertToAndFrom sb ub sw uw s3 u3 sl u4 raw dat au wav aiff flac al
format1=sw
-convertToAndFrom sl ul uw raw
+convertToAndFrom sw uw s3 u3 sl u4 raw au wav aiff flac ul
-format1=wav
-convertToAndFrom 8svx aiff au avr dat maud sf smp
+format1=u3
+convertToAndFrom s3 u3 sl u4 wav flac
+
+format1=sl
+convertToAndFrom sl u4 wav
+
+format1=al
+convertToAndFrom al sw uw sl raw dat
+
+format1=ul
+convertToAndFrom ul sw uw sl raw dat
+
+format1=Wav
+convertToAndFrom Wav 8svx aiff au avr dat maud sf smp
rate=5512
convertToAndFrom hcom
rate=8000