Re: Noise while using softvol device

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

 



On 09/11/2009 03:22 AM, Clemens Ladisch wrote:
> Piotr Sipika wrote:
>> I'm attempting to introduce software volume control for a device on a
>> system running openWRT. I'm able to control the volume for the device
>> using alsamixer, but for values OTHER than 100 and 0, the sound being
>> played contains noise.
>> ...
>>           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).

Here's the output of aplay using the device:

# aplay -Dplay_channel1 stereo-int16.wav
Playing WAVE 'stereo-int16.wav' : Signed 16 bit Little Endian, Rate 8000 
Hz, Stereo

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
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux