Слово
«struct»впервые сказано пользователем
Pascal 06.06.2005 в 20:12,
и с тех пор употреблялось
98 раз.
Сообщения со словом
«struct»
Запрос выполнился за
0.0031 сек.
- 12.05.2009, 18:15. S1680 в теме
«Дайте телефон кафедры 32»
http oldsite mephi ru win struct kaf htm кафедра 32 кафедра теоретической ядерной...
- 01.03.2009, 14:23. belkins в теме
«multicast»
... int argc char argv char buffer 1024 char message 50 struct sockaddr in servaddr cliaddr int sockfd size sizeof servaddr ttl 64 sockfd socket af inet sock dgram 0 bzero servaddr sizeof servaddr servaddr sin family af inet servaddr sin port htons 4544 if inet aton 239 255 13 13 servaddr sin addr s addr 0 inaddr any printf bad ip n if setsockopt sockfd ipproto ip ip multicast ttl u char ttl sizeof int 0 printf error if setsockopt sockfd ipproto ip ip multicast if servaddr size 0 printf error printf enter message scanf 49s message 0 sendto sockfd message sizeof message 0 struct sockaddr servaddr size return 0 а вот сервер код include sys socket h include resolv h include string h include stdio h int main int argc char argv char buffer 1024 const char groupid 239 255 13 13 struct sockaddr in servaddr struct ip mreq mreq char message 50 int sockfd size sizeof mreq i sockfd socket af inet sock dgram 0 if inet aton groupid mreq imr multiaddr 0 printf adress bad mreq imr interface s addr inaddr any if i setsockopt sockfd ipproto ip ip add membership mreq size 0 printf join group fail i n i i 1 if setsockopt sockfd sol socket so reuseaddr i sizeof i printf reuse fail recvfrom sockfd buffer sizeof buffer 0 struct sockaddr mreq size printf s n buffer return...
- 25.02.2009, 20:40. belkins в теме
«программирование звука unix»
... частота дискретизации i гц n rate initialization of the structure that holds the bits speex bits init bits for count 0 count rate 5 nchans count actlen actlen read audio fd buf buf size copy the 16 bits values to float so speex can work on them for i 0 i buf size i input i buf i printf ok n flush all the bits in the struct so we can encode a new frame speex bits reset bits encode the frame i speex encode int state buf bits printf encode i n i copy the bits to an array of char that can be written nbbytes speex bits write bits cbits 2000 write the size of the frame first this is what sampledec expects but it s likely to be different in your own application fwrite nbbytes sizeof int 1 fout write the compressed data fwrite cbits 1 nbbytes fout write out fd buf actlen printf i n actlen destroy the encoder state speex encoder destroy state destroy the bit-packing struct speex bits destroy bits fclose fin fclose fout return exit success это я декодирую и воспроизвожу код include speex speex h include stdio h include stdio h include stdlib h include sys ioctl h include unistd h include fcntl h include sys soundcard h define buf size 160 define frame size 160 int main int argc char argv int audio fd in fd format int nchans rate actlen short buf buf size char outfile file fout fin holds the audio that will be written to file 16 bits per sample short out frame size speex handle samples as float so we need an array of floats float output frame size 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...
- 08.02.2009, 18:37. jiffy в теме
«Информация для поступающих»
... начала неплохо бы посетить это http www mephi ru win struct sframe htm раздел факультеты затем раздел кафедры...
- 20.10.2008, 19:22. Ruben в теме
«Неделя 2. Жадность»
... secure no warnings include stdio h include stdlib h struct interv int b int e interv next int cmp const...
- 13.10.2008, 20:01. Ruben в теме
«Неделя 2. Жадность»
... secure no warnings include stdio h include stdlib h struct fi int p int a int cmp const void a const void...
- 12.05.2008, 23:46. vezynchik в теме
«Разовая работа, цена договрная»
... вектором каждый элемент таблицы имеет следующую структуру struct item int key ключ элемента char info указатель...
- 12.05.2008, 23:44. vezynchik в теме
«Решите мне задачку по Си ++, о цене договоримся»
... вектором каждый элемент таблицы имеет следующую структуру struct item int key ключ элемента char info указатель...
- 23.12.2007, 13:22. Ruben в теме
«Неделя 1. Полный перебор»
... include stdlib h include vector using namespace std struct mypair mypair b 0 e 0 mypair int a int c b a...
- 10.09.2007, 02:01. jiffy в теме
«Платные доп. занятия»
... стоит пытаться попасть к ним http www mephi ru win struct sframe htm