[Speex-dev] Win CE playback error

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Tue Feb 22 18:26:44 PST 2005

Le mercredi 23 février 2005 à 09:37 +0800, ohjames a écrit :
> Hi,
> I have a module sampling raw PCM data on Win CE as 10ms time slice
> (160 bytes), mono, 8000HZ, 16 bits per sample.
> Does anyone know what is the mflops for using fixed point on a Win CE
> compared to using floating point?

By definition, fixed-point means 0 mflops. As for running floating point
on WinCE, it's going to take days to encode a file.

> "In practice, frame_size will correspond to 20 ms when using 8, 16, or
> 32 kHz sampling
> rate."
> for a 8 kHz sampling, the framesize should be 320 right?

I don't know about your machine, but on mine, when I do 20ms*8kHz, I get
160 samples ;-)

> But when i use 
> speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size)
> The framesize i got is 160.

Which is normal.

> I am trying to encode the data which is contained as an unsigned char
> buffer[160] as mode 2 of 5,950 bps and stored as the same data type as
> unsigned char array after encoding

Please start from sampleenc/sampledec. 


Jean-Marc Valin <Jean-Marc.Valin at USherbrooke.ca>
Universite de Sherbrooke
Jean-Marc Valin <Jean-Marc.Valin at USherbrooke.ca>
Université de Sherbrooke

More information about the Speex-dev mailing list