everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
From: Rene Maurer <rmnet@mailc.net>
To: dtas-all@nongnu.org
Subject: Using 16-bit Signed Integer PCM
Date: Sun, 24 Nov 2019 14:01:20 +0100	[thread overview]
Message-ID: <87imn9l97j.fsf@alperose.cumparsita.ch> (raw)

Even if I choose type=s16 the resulting output is s32.

wav file as follows:

soxi src.wav

Input File     : 'src.wav'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:00:53.43 = 2356478 samples = 4007.62 CDDA sectors
File Size      : 9.43M
Bit Rate       : 1.41M
Sample Encoding: 16-bit Signed Integer PCM

Used "sox src.wav src.raw" to convert the file to src.raw:

ls -l src.raw 
-rw-r--r-- 1 r r 9425912 Nov 24 12:16 src.raw

Used "dtas-ctl format type=s16" to change the format to 16bit signed.
Used "dtas-ctl sink ed dumper command='sox $SOXFMT - /tmp/dump.sox' to
create a dumper sink.
Used "dtas-ctl sink ed dumper active=true" to activate the sink.
Play the file with "dtas-enq src.wav"

Output of ps -x:
10030 ?        SL     0:00 play -q -ts16 -c2 -r44100 -
10031 ?        S      0:00 sox -ts16 -c2 -r44100 - /tmp/dump.sox
10032 ?        S      0:00 sox /home/r/Desktop/SOX/src.wav -ts16 -c2 -r44100 -

I have assumed that /tmp/dump.sox will be identical with src.raw. But it
isn't:

ls -l /tmp/dump.sox 
-rw-r--r-- 1 r r 18851872 Nov 24 13:24 /tmp/dump.sox

dump.sox is in s32 format and not as assumed in s16 format.

Is there an explanation?

Best René


             reply	other threads:[~2019-11-24 13:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-24 13:01 Rene Maurer [this message]
2019-11-24 23:04 ` Eric Wong
2019-11-26 12:58   ` Rene Maurer
2019-11-26 19:16     ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://80x24.org/dtas/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87imn9l97j.fsf@alperose.cumparsita.ch \
    --to=rmnet@mailc.net \
    --cc=dtas-all@nongnu.org \
    --subject='Re: Using 16-bit Signed Integer PCM' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

everything related to duct tape audio suite (dtas)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://80x24.org/dtas-all
	git clone --mirror http://ou63pmih66umazou.onion/dtas-all

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 dtas-all dtas-all/ https://80x24.org/dtas-all \
		dtas-all@nongnu.org
	public-inbox-index dtas-all

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.dtas
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.audio.dtas
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

	../../dtas.git

AGPL code for this site: git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git