| 91 | } |
| 92 | |
| 93 | void setOutputRate(JASOutputRate outputRate) { |
| 94 | sOutputRate = outputRate; |
| 95 | if (outputRate == OutputRate_32kHz) { |
| 96 | sSubFrames = 7; |
| 97 | sDacRate = 32000.0f; |
| 98 | } |
| 99 | else { |
| 100 | sSubFrames = 10; |
| 101 | sDacRate = 48000.0f; // but i want this |
| 102 | } |
| 103 | sDacRate *= 1.0008897f; // ? |
| 104 | } |
| 105 | |
| 106 | void updateDac() { |
| 107 | static u32 dacp = 0; |