| 1572 | } |
| 1573 | |
| 1574 | void CCompiler::AddWavetable(CInstrumentFDS *pInstrument, CChunk *pChunk) |
| 1575 | { |
| 1576 | // TODO Find equal existing waves |
| 1577 | |
| 1578 | // Allocate new wave |
| 1579 | for (int i = 0; i < 64; ++i) |
| 1580 | pChunk->StoreByte(pInstrument->GetSample(i)); |
| 1581 | |
| 1582 | ++m_iWaveTables; |
| 1583 | } |
| 1584 | |
| 1585 | // Object list functions |
| 1586 |