From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Grace Baldonasa <gbaldona@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: question about sampling rate
Date: Thu, 31 Aug 2006 10:17:17 +0200 [thread overview]
Message-ID: <1157012237.11592.269833216@webmail.messagingengine.com> (raw)
In-Reply-To: <7034e7b50608302232w2b7279b3qf66acaeca54f1e2b@mail.gmail.com>
Grace Baldonasa wrote:
> I am dividing the buffer size into 20 ms, in the given example, I am
> sending 176 bytes / packet.
This would correspond to a sample rate of 44000 Hz.
You cannot use a constant number of bytes per packet at 44100 Hz.
> I have here another scenario and I hope you can give me some idea again.
> I have converted a song using this configuration:
> sampling rate = 32000
> bit resolution = 16
> channel = stereo
> after this computation (32000*16*2) * 2 -> 128/packet
>
> I used a speaker which is supporting a minimum frequency of 44100 and
> maximum of 48000. How can I adjust my streaming size now that the streaming
> configuration far below than the minimum supported by the speaker.
See section 5.12 of the USB 2.0 specification.
> I attached this speaker in windows and then played the converted file, it
> is sending 192bytes/packet, and the total bytes transffered had almost
> trippled the original size of the converted file.
Apparently, Windows has converted the data to 48 kHz.
Regards,
Clemens
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
next prev parent reply other threads:[~2006-08-31 8:17 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-12 8:05 question about sampling rate Grace Baldonasa
2006-07-12 8:56 ` Adrian McMenamin
2006-07-12 9:17 ` Grace Baldonasa
2006-07-12 9:37 ` Clemens Ladisch
2006-07-12 10:00 ` Grace Baldonasa
2006-07-14 17:31 ` Clemens Ladisch
2006-07-18 5:13 ` Grace Baldonasa
2006-07-18 7:11 ` Clemens Ladisch
2006-07-18 7:21 ` Grace Baldonasa
2006-07-18 14:34 ` Clemens Ladisch
2006-07-19 1:27 ` Grace Baldonasa
2006-07-19 12:29 ` Clemens Ladisch
2006-08-10 2:45 ` Grace Baldonasa
2006-08-11 17:06 ` Clemens Ladisch
2006-08-31 5:32 ` Grace Baldonasa
2006-08-31 8:17 ` Clemens Ladisch [this message]
2006-08-31 8:22 ` Grace Baldonasa
2006-08-31 8:49 ` Clemens Ladisch
2006-08-31 9:10 ` Grace Baldonasa
2006-08-31 9:50 ` Grace Baldonasa
2006-08-31 10:50 ` Clemens Ladisch
2006-09-19 9:36 ` Grace Baldonasa
2006-10-02 3:53 ` Grace Baldonasa
2006-10-04 12:01 ` Clemens Ladisch
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1157012237.11592.269833216@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=alsa-devel@alsa-project.org \
--cc=gbaldona@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox