Skip to content

Commit

Permalink
tests/ao: fix build error using old api
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Feb 7, 2016
1 parent 9566b58 commit e7da6d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ao/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

using namespace QtAV;
const int kTableSize = 200;
const int kFrames = 1024;
const int kFrames = 512;
qint16 sin_table[kTableSize];

void help() {
Expand Down Expand Up @@ -64,7 +64,7 @@ int main(int argc, char** argv)
}
ao.setAudioFormat(af);
QByteArray data(af.bytesPerFrame()*kFrames, 0); //bytesPerSample*channels*1024
ao.setBufferSize(data.size());
ao.setBufferSamples(kFrames);
if (!ao.open()) {
qWarning("open audio error");
return -1;
Expand Down

0 comments on commit e7da6d1

Please sign in to comment.