On 09/11/2009 01:36 PM, Clemens Ladisch wrote:
> Piotr Sipika wrote:
>> On 09/11/2009 03:22 AM, Clemens Ladisch wrote:
>>>> rate 8000
>>>
>>> This looks like a device that uses 8-bit samples.
>>> What is the output of "aplay -D playback_vol_channel1 something.wav"?
>>
>> I think rate corresponds to the number of samples per second.
>> The size of the sample (bits-per-sample) is set by the format, which in
>> my case is set to SND_FORMAT_S16_LE (16-bit signed int).
>
> I see devices with 8 kHz typically as headsets that want U8.
Now that I think about it, that would make more sense than using 16-bit
samples...
> Sorry, I forgot the -v.
> Please try "aplay -v -Dplay_channel1 stereo-int16.wav".
>
aplay -v -Dplay_channel1 stereo-int16.wav
Playing WAVE 'stereo-int16.wav' : Signed 16 bit Little Endian, Rate 8000
Hz, Stereo
Plug PCM: Route conversion PCM (sformat=S16_LE)
Transformation table:
0 <- 0
1 <- none
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4096
period_size : 512
period_time : 64000
tstamp_mode : NONE
period_step : 1
avail_min : 512
period_event : 0
start_threshold : 4096
stop_threshold : 4096
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Slave: Copy conversion PCM
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4096
period_size : 512
period_time : 64000
tstamp_mode : NONE
period_step : 1
avail_min : 512
period_event : 0
start_threshold : 4096
stop_threshold : 4096
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Slave: Direct Stream Mixing PCM
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4096
period_size : 512
period_time : 64000
tstamp_mode : NONE
period_step : 1
avail_min : 512
period_event : 0
start_threshold : 4096
stop_threshold : 4096
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Hardware PCM card 0 'gw_avila-board_0' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 8192
period_size : 512
period_time : 64000
tstamp_mode : ENABLE
period_step : 1
avail_min : 512
period_event : 0
start_threshold : 1
stop_threshold : 1073741824
silence_threshold: 0
silence_size : 1073741824
boundary : 1073741824
^CAborted by signal Interrupt...
Thanks,
Piotr
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user