audio-tbls.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. svp_t audio_bits_tbl[] = {
  2. { "8", 8 } , /* 8 bits per sample */
  3. { "16", 16 }, /* 16 bits per sample */
  4. {nil},
  5. };
  6. svp_t audio_chan_tbl[] = {
  7. { "1", 1 }, /* 1 channel */
  8. { "2", 2 }, /* 2 channels */
  9. {nil},
  10. };
  11. svp_t audio_indev_tbl[] = {
  12. { "mic", Audio_Mic_Val }, /* input microphone */
  13. { "line", Audio_Linein_Val }, /* line in */
  14. {nil},
  15. };
  16. svp_t audio_outdev_tbl[] = {
  17. { "spkr", Audio_Speaker_Val }, /* output speaker */
  18. { "hdph", Audio_Headphone_Val },/* head phones */
  19. { "line", Audio_Lineout_Val }, /* line out */
  20. {nil},
  21. };
  22. svp_t audio_enc_tbl[] = {
  23. { "ulaw", Audio_Ulaw_Val }, /* u-law encoding */
  24. { "alaw", Audio_Alaw_Val }, /* A-law encoding */
  25. { "pcm", Audio_Pcm_Val }, /* Pulse Code Modulation */
  26. {nil},
  27. };
  28. svp_t audio_rate_tbl[] = {
  29. { "8000", 8000 }, /* 8000 samples per second */
  30. { "11025", 11025 }, /* 11025 samples per second */
  31. { "22050", 22050 }, /* 22050 samples per second */
  32. { "44100", 44100 }, /* 44100 samples per second */
  33. {nil},
  34. };
  35. Audio_d Default_Audio_Format = {
  36. 0,
  37. 16, /* bits per sample */
  38. Audio_Max_Val, /* buffer size (as percentage) */
  39. 2, /* number of channels */
  40. -1, /* device */
  41. Audio_Pcm_Val, /* encoding format */
  42. 8000, /* samples per second */
  43. Audio_Max_Val, /* left channel gain */
  44. Audio_Max_Val, /* right channel gain */
  45. };
  46. int Default_Audio_Input = Audio_Mic_Val;
  47. int Default_Audio_Output = Audio_Speaker_Val;