Re: Query regarding ALSA control interface

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

 



Pharaoh . wrote:
> Now, I have to implement a control which takes four different values..namely
> 0,1.100 and 101. In this case what shoud be the type of control? It should
> be ENUMERATED or INTEGER? I am confused here since the values are not
> exactly in a range.

An INTEGER control takes numeric values in a specific range, while an
ENUMERATED control takes values that are not numerically related (but
that are _internally_ represented as integers in a specific range).

In your case, you'd probably want to use an enumerated control with the
range 0..3, which maps to the four names "0", "1", "100" and "101".


HTH
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux