Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1016 B

  1. //========== Copyright � Valve Corporation, All rights reserved. ========
  2. #include "ps3/spu_job_shared.h"
  3. #include "vjobs/mp3dec_shared.h"
  4. // layer 3, version {2, 1} ( indexed by LSB of m_nAudioVersionId)
  5. uint8 s_mp3_bitrate_8000[2][16] = // bitrate / 8000
  6. {
  7. { // version 2, version id = 10b
  8. 0, // free
  9. 8 / 8,
  10. 16 / 8,
  11. 24 / 8,
  12. 32 / 8,
  13. 40 / 8,
  14. 48 / 8,
  15. 56 / 8,
  16. 64 / 8,
  17. 80 / 8,
  18. 96 / 8,
  19. 112 / 8,
  20. 128 / 8,
  21. 144 / 8,
  22. 160 / 8,
  23. 0// bad
  24. },
  25. { // version 1, version id = 11b
  26. 0, // free
  27. 32 / 8,
  28. 40 / 8,
  29. 48 / 8,
  30. 56 / 8,
  31. 64 / 8,
  32. 80 / 8,
  33. 96 / 8,
  34. 112 / 8,
  35. 128 / 8,
  36. 160 / 8,
  37. 192 / 8,
  38. 224 / 8,
  39. 256 / 8,
  40. 320 / 8,
  41. 0 //bad
  42. }
  43. };
  44. uint16 s_mp3_samplingrate_div50[2][4] =
  45. {
  46. {// version 2, version id = 10b
  47. 22050/50,
  48. 24000/50,
  49. 16000/50,
  50. 0 // reserved
  51. },
  52. {// version 1, version id = 11b
  53. 44100/50,
  54. 48000/50,
  55. 32000/50,
  56. 0
  57. }
  58. };
  59. void job_mp3dec::Context_t::Init()
  60. {
  61. ZeroMemAligned( this, sizeof( *this ) );
  62. }