Searched refs:ulaw_buffer (Results 1 – 1 of 1) sorted by relevance
/third_party/libsnd/tests/ |
D | ulaw_test.c | 41 static unsigned char ulaw_buffer [BUFFER_SIZE] ; variable 85 if (sf_read_raw (file, ulaw_buffer, BUFFER_SIZE) != BUFFER_SIZE) in main() 92 if (ulaw_encode (short_buffer [k]) != ulaw_buffer [k]) in main() 93 …{ printf ("Encoder error : sample #%d (0x%02X should be 0x%02X)\n", k, ulaw_buffer [k], ulaw_encod… in main() 114 ulaw_buffer [k] = k & 0xFF ; in main() 116 sf_write_raw (file, ulaw_buffer, 256) ; in main() 139 if (short_buffer [k] != ulaw_decode (ulaw_buffer [k])) in main() 140 …or : sample #%d (0x%04X should be 0x%04X)\n", k, short_buffer [k], ulaw_decode (ulaw_buffer [k])) ; in main()
|