| 44 | } |
| 45 | |
| 46 | static void writesamples(short * aSrc, float * aDst, int aCount) |
| 47 | { |
| 48 | int i; |
| 49 | for (i = 0; i < aCount; i++) |
| 50 | { |
| 51 | aDst[i] = aSrc[i] * (1 / (float)0x8000); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | unsigned int SpeechInstance::getAudio(float *aBuffer, unsigned int aSamplesToRead, unsigned int aBufferSize) |
| 56 | { |