Слово
«decode»впервые сказано пользователем
Neper 29.08.2008 в 17:50,
и с тех пор употреблялось
44 раза.
Сообщения со словом
«decode»
Запрос выполнился за
0.0029 сек.
- 25.02.2009, 20:40. belkins в теме
«программирование звука unix»
... char cbits 200 int nbbytes holds the state of the decoder void state holds bits so they can be read and written to by the speex routines speexbits bits int i tmp if argc 2 printf команда s filename rate n argv 0 return exit success in fd open argv 1 o rdonly audio fd open dev dsp o wronly 0 format afmt s16 le ioctl audio fd sndctl dsp setfmt format if format afmt s16 le printf ошибка запрошенный формат не поддерживается return exit failure nchans 1 ioctl audio fd sndctl dsp channels nchans if argc 3 rate atoi argv 2 else rate 8000 ioctl audio fd sndctl dsp speed rate printf используемая частота дискретизации i гц n rate the frame size in hardcoded for this sample code but it doesn t have to be create a new decoder state in narrowband mode state speex decoder init speex nb mode set the perceptual enhancement on tmp 1 speex decoder ctl state speex set enh tmp outfile argv 1 fout fopen root c w fin fopen argv 1 r initialization of the structure that holds the bits speex bits init bits while 1 read the size encoded by sampleenc this part will likely be different in your application fread nbbytes sizeof int 1 fin fprintf stderr nbbytes d n nbbytes if feof fin break read the packet encoded by sampleenc fread cbits 1 nbbytes fin copy the data into the bit-stream struct speex bits read from bits cbits nbbytes decode the data i speex decode int state bits out printf decode i i copy from float to short 16 bits for output for i 0 i frame size i out i output i write audio fd out frame size write the decoded audio to file fwrite out sizeof short frame size fout destroy the decoder state speex decoder destroy state destroy the bit-stream truct...
- 29.08.2008, 17:50. Neper в теме
«линух»
... with a unique touch amarok can use various engines to decode sound helix and xine to use the helix engine...