Mercurial > hg > easaier-soundaccess
comparison data/fileio/WavFileWriter.cpp @ 191:be6d31baecb9
compilation under linux - kunbuntu V7.10 (without video support)
author | lbajardsilogic |
---|---|
date | Wed, 28 Nov 2007 13:03:45 +0000 |
parents | fc9323a41f5a |
children |
comparison
equal
deleted
inserted
replaced
190:61681a2bc1e6 | 191:be6d31baecb9 |
---|---|
99 | 99 |
100 size_t f0(i->getStartFrame()), f1(i->getEndFrame()); | 100 size_t f0(i->getStartFrame()), f1(i->getEndFrame()); |
101 | 101 |
102 for (size_t f = f0; f < f1; f += bs) { | 102 for (size_t f = f0; f < f1; f += bs) { |
103 | 103 |
104 size_t n = min(bs, f1 - f); | 104 size_t n = MIN(bs, f1 - f); |
105 | 105 |
106 for (int c = 0; c < int(m_channels); ++c) { | 106 for (int c = 0; c < int(m_channels); ++c) { |
107 source->getValues(c, f, f + n, ub); | 107 source->getValues(c, f, f + n, ub); |
108 for (size_t i = 0; i < n; ++i) { | 108 for (size_t i = 0; i < n; ++i) { |
109 ib[i * m_channels + c] = ub[i]; | 109 ib[i * m_channels + c] = ub[i]; |