comparison libgsmhr1/pack_frame.c @ 508:c275e57132f8

libgsmhr1/{pack,unpack}_frame.c: comment fix there is only one unvoiced mode, hence it should be singular
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 17 Aug 2024 21:45:34 +0000
parents 4d80730683d4
children
comparison
equal deleted inserted replaced
507:06578223a752 508:c275e57132f8
41 *c++ = ((params[15] & 0x3) << 6) 41 *c++ = ((params[15] & 0x3) << 6)
42 | ((params[16] >> 3) & 0x3F); 42 | ((params[16] >> 3) & 0x3F);
43 *c++ = ((params[16] & 0x7) << 5) 43 *c++ = ((params[16] & 0x7) << 5)
44 | (params[17] & 0x1F); 44 | (params[17] & 0x1F);
45 } else { 45 } else {
46 /* unvoiced modes */ 46 /* unvoiced mode */
47 *c++ = ((params[0] & 0x1F) << 3) 47 *c++ = ((params[0] & 0x1F) << 3)
48 | ((params[1] >> 8) & 0x7); 48 | ((params[1] >> 8) & 0x7);
49 *c++ = params[1] & 0xFF; 49 *c++ = params[1] & 0xFF;
50 *c++ = ((params[2] >> 1) & 0xFF); 50 *c++ = ((params[2] >> 1) & 0xFF);
51 *c++ = ((params[2] & 0x1) << 7) 51 *c++ = ((params[2] & 0x1) << 7)