ITABaseAudioSampleTest.cpp 537 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <ITAException.h>
#include <ITAAudioSample.h>

#include <iostream>

using namespace std;

int main( int, char** )
{
	try
	{
		CITAAudioSample as44kfs;
		CITAAudioSample as48kfs;
		CITAAudioSample as96kfs;
		CITAAudioSample as128kfs;

		as44kfs.Init( 2, 2 * 44100, 44.1e3, true );
		as44kfs[ 0 ][ 0 ] = 1.0f;
		as44kfs[ 0 ][ as44kfs.GetLength() - 1 ] = -1.0f;

		as48kfs.Load( as44kfs );
		as96kfs.Load( as48kfs );
		as128kfs.Load( as96kfs );
	}
	catch( ITAException& err )
	{
		cerr << "Error: " << err << endl;
	}

	return 0;
}