mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-12-12 13:06:25 +00:00
76 lines
1.4 KiB
Modula-2
76 lines
1.4 KiB
Modula-2
autogen definitions write_read_test.tpl;
|
|
|
|
data_type = {
|
|
type_name = char ;
|
|
data_type = short ;
|
|
data_field = s ;
|
|
error_func = CHAR_ERROR ;
|
|
format_char = "0x%X" ;
|
|
max_val = "32000.0" ;
|
|
max_error = "255" ;
|
|
} ;
|
|
|
|
data_type = {
|
|
type_name = short ;
|
|
data_type = short ;
|
|
data_field = s ;
|
|
error_func = INT_ERROR ;
|
|
format_char = "0x%X" ;
|
|
max_val = "32000.0" ;
|
|
max_error = "0" ;
|
|
} ;
|
|
|
|
data_type = {
|
|
type_name = "20bit" ;
|
|
data_type = int ;
|
|
data_field = i ;
|
|
error_func = BIT_20_ERROR ;
|
|
format_char = "0x%X" ;
|
|
max_val = "(1.0 * 0x7F00000)" ;
|
|
max_error = "4096" ;
|
|
} ;
|
|
|
|
data_type = {
|
|
type_name = "24bit" ;
|
|
data_type = int ;
|
|
data_field = i ;
|
|
error_func = TRIBYTE_ERROR ;
|
|
format_char = "0x%X" ;
|
|
max_val = "(1.0 * 0x7F000000)" ;
|
|
max_error = "256" ;
|
|
} ;
|
|
|
|
data_type = {
|
|
type_name = int ;
|
|
data_type = int ;
|
|
data_field = i ;
|
|
error_func = INT_ERROR ;
|
|
format_char = "0x%X" ;
|
|
max_val = "(1.0 * 0x7F000000)" ;
|
|
max_error = "0" ;
|
|
} ;
|
|
|
|
/* Lite remove start */
|
|
|
|
data_type = {
|
|
type_name = float ;
|
|
data_type = float ;
|
|
data_field = f ;
|
|
error_func = FLOAT_ERROR ;
|
|
format_char = "%g" ;
|
|
max_val = "1.0" ;
|
|
max_error = "0" ;
|
|
} ;
|
|
|
|
data_type = {
|
|
type_name = double ;
|
|
data_type = double ;
|
|
data_field = d ;
|
|
error_func = FLOAT_ERROR ;
|
|
format_char = "%g" ;
|
|
max_val = "1.0" ;
|
|
max_error = "0" ;
|
|
} ;
|
|
|
|
/* Lite remove end */
|