File: pcm_test.def

package info (click to toggle)
libsndfile 1.0.16-2%2Betch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,912 kB
  • ctags: 3,014
  • sloc: ansic: 41,558; sh: 8,906; makefile: 496; python: 93; cpp: 92
file content (42 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (6)
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
32
33
34
35
36
37
38
39
40
41
42
autogen definitions pcm_test.tpl;

data_type = {
	name		= "bits_8" ;
	item_count	= 127 ;
	short_func	= "((k * ((k % 2) ? 1 : -1)) << 8)" ;
	int_func	= "((k * ((k % 2) ? 1 : -1)) << 24)" ;
	float_func	= "(k * ((k % 2) ? 1 : -1))" ;
	} ;

data_type = {
	name		= "bits_16" ;
	item_count	= 1024 ;
	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
	int_func	= "((k * ((k % 2) ? 3 : -3)) << 16)" ;
	float_func	= "(k * ((k % 2) ? 3 : -3))" ;
	} ;

data_type = {
	name		= "bits_24" ;
	item_count	= 1024 ;
	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
	int_func	= "((k * ((k % 2) ? 3333 : -3333)) << 8)" ;
	float_func	= "(k * ((k % 2) ? 3333 : -3333))" ;
	} ;

data_type = {
	name		= "bits_32" ;
	item_count	= 1024 ;
	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
	int_func	= "(k * ((k % 2) ? 333333 : -333333))" ;
	float_func	= "(k * ((k % 2) ? 333333 : -333333))" ;
	} ;

/*
** Do not edit or modify anything in this comment block.
** The arch-tag line is a file identity tag for the GNU Arch 
** revision control system.
**
** arch-tag: a939b77e-4175-460b-a393-fb38012ded7c
*/