Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/audio/common Only 8-bit data is unsigned in WAVE files.
details: https://anonhg.NetBSD.org/src/rev/86bcaa3c9376
branches: trunk
changeset: 467793:86bcaa3c9376
user: mycroft <mycroft%NetBSD.org@localhost>
date: Mon Mar 29 11:09:04 1999 +0000
description:
Only 8-bit data is unsigned in WAVE files.
diffstat:
usr.bin/audio/common/audio.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 31d925f64a26 -r 86bcaa3c9376 usr.bin/audio/common/audio.c
--- a/usr.bin/audio/common/audio.c Mon Mar 29 10:02:19 1999 +0000
+++ b/usr.bin/audio/common/audio.c Mon Mar 29 11:09:04 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.5 1999/03/29 04:49:49 mrg Exp $ */
+/* $NetBSD: audio.c,v 1.6 1999/03/29 11:09:04 mycroft Exp $ */
/*
* Copyright (c) 1999 Matthew R. Green
@@ -220,7 +220,10 @@
default:
return (AUDIO_EWAVBADPCM);
}
- newenc = AUDIO_ENCODING_ULINEAR_LE;
+ if (newprec == 8)
+ newenc = AUDIO_ENCODING_ULINEAR_LE;
+ else
+ newenc = AUDIO_ENCODING_SLINEAR_LE;
break;
case WAVE_FORMAT_ALAW:
newenc = AUDIO_ENCODING_ALAW;
Home |
Main Index |
Thread Index |
Old Index