Guido van Rossum | 73b715e | 1992-06-03 16:50:01 +0000 | [diff] [blame] | 1 | # Symbolic constants for use with sunaudiodev module |
| 2 | # The names are the same as in audioio.h with the leading AUDIO_ |
| 3 | # removed. |
| 4 | |
| 5 | # Encoding types, for fields i_encoding and o_encoding |
| 6 | |
| 7 | ENCODING_ULAW = 1 |
| 8 | ENCODING_ALAW = 2 |
| 9 | |
| 10 | # Gain ranges for i_gain, o_gain and monitor_gain |
| 11 | |
| 12 | MIN_GAIN = 0 |
| 13 | MAX_GAIN = 255 |
| 14 | |
| 15 | # Port names for i_port and o_port |
| 16 | |
| 17 | PORT_A = 1 |
| 18 | PORT_B = 2 |
| 19 | PORT_C = 3 |
| 20 | PORT_D = 4 |
| 21 | |
| 22 | SPEAKER = PORT_A |
| 23 | HEADPHONE = PORT_B |
| 24 | |
| 25 | MICROPHONE = PORT_A |