Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/audio/play Fix various buglets.



details:   https://anonhg.NetBSD.org/src/rev/5381eb328cd5
branches:  trunk
changeset: 471490:5381eb328cd5
user:      augustss <augustss%NetBSD.org@localhost>
date:      Fri Apr 02 16:05:55 1999 +0000

description:
Fix various buglets.

diffstat:

 usr.bin/audio/play/audioplay.1 |   4 ++--
 usr.bin/audio/play/play.c      |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r 2f870d97abeb -r 5381eb328cd5 usr.bin/audio/play/audioplay.1
--- a/usr.bin/audio/play/audioplay.1    Fri Apr 02 15:53:39 1999 +0000
+++ b/usr.bin/audio/play/audioplay.1    Fri Apr 02 16:05:55 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: audioplay.1,v 1.3 1999/03/30 14:48:49 mrg Exp $
+.\"    $NetBSD: audioplay.1,v 1.4 1999/04/02 16:05:55 augustss Exp $
 .\"
 .\" Copyright (c) 1998-1999 Matthew R. Green
 .\" All rights reserved.
@@ -156,4 +156,4 @@
 .Xr sb 4 ,
 .Xr sv 4 ,
 .Xr wss 4 ,
-.Xr ym .
+.Xr ym 4 .
diff -r 2f870d97abeb -r 5381eb328cd5 usr.bin/audio/play/play.c
--- a/usr.bin/audio/play/play.c Fri Apr 02 15:53:39 1999 +0000
+++ b/usr.bin/audio/play/play.c Fri Apr 02 16:05:55 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: play.c,v 1.7 1999/03/30 19:33:31 augustss Exp $        */
+/*     $NetBSD: play.c,v 1.8 1999/04/02 16:05:55 augustss Exp $        */
 
 /*
  * Copyright (c) 1999 Matthew R. Green
@@ -293,8 +293,8 @@
                        return (-1);
                }
 
-               sample_rate = ntohl(sunhdr->sample_rate);
-               channels = ntohl(sunhdr->channels);
+               info.play.sample_rate = ntohl(sunhdr->sample_rate);
+               info.play.channels = ntohl(sunhdr->channels);
                hdr_len = ntohl(sunhdr->hdr_size); 
 
                goto set_audio_mode;
@@ -331,9 +331,9 @@
                info.play.balance = balance;
        if (fflag) {
                if (sample_rate)
-                       info.play.gain = sample_rate;
+                       info.play.sample_rate = sample_rate;
                if (channels)
-                       info.play.gain = channels;
+                       info.play.channels = channels;
                if (encoding)
                        info.play.encoding = encoding;
                if (precision)



Home | Main Index | Thread Index | Old Index