| 134 | } |
| 135 | |
| 136 | int CInstCompilerN163::StoreWaves(const CInstrumentN163 &inst, CChunk &chunk) const { |
| 137 | int Count = inst.GetWaveCount(); |
| 138 | int Size = inst.GetWaveSize(); |
| 139 | |
| 140 | // Number of waves |
| 141 | // chunk.StoreByte(Count); |
| 142 | |
| 143 | // Pack samples |
| 144 | for (int i = 0; i < Count; ++i) |
| 145 | for (int j = 0; j < Size; j += 2) |
| 146 | chunk.StoreByte(inst.GetSample(i, j) | (inst.GetSample(i, j + 1) << 4)); |
| 147 | |
| 148 | return Count * Size / 2; |
| 149 | } |
no test coverage detected