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é
next 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 ` Using 16-bit Signed Integer PCM 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 \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/dtas.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).