Rev 136 | Rev 171 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 136 | Rev 159 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | // first reset the whole structure |
12 | // first reset the whole structure |
13 | memset (player, 0, sizeof (player_t)); |
13 | memset (player, 0, sizeof (player_t)); |
14 | 14 | ||
15 | // allocate space for send and receive buffers and reset them |
15 | // allocate space for send and receive buffers and reset them |
16 | player->sendbuffer_locked = false; |
16 | player->sendbuffer_locked = false; |
17 | player->sendbuffer_size = |
17 | player->sendbuffer_size = 10 * 1024 * 1024; // 10 Mb should be enough, right ? |
18 | player->sendbuffer = (wchar_t *) SAFE_malloc (player->sendbuffer_size, sizeof (wchar_t), false); |
18 | player->sendbuffer = (wchar_t *) SAFE_malloc (player->sendbuffer_size, sizeof (wchar_t), false); |
19 | player->sendbuffer[0] = 0; |
19 | player->sendbuffer[0] = 0; |
20 | player->recvbuffer_size = |
20 | player->recvbuffer_size = 10 * 1024 * 1024; // 10 Mb should be enough, right ? |
21 | player->ascii_recvbuffer = (char *) SAFE_malloc (player->recvbuffer_size, sizeof (char), false); |
21 | player->ascii_recvbuffer = (char *) SAFE_malloc (player->recvbuffer_size, sizeof (char), false); |
22 | player->ascii_recvbuffer[0] = 0; |
22 | player->ascii_recvbuffer[0] = 0; |
23 | player->recvbuffer = (wchar_t *) SAFE_malloc (player->recvbuffer_size, sizeof (wchar_t), false); |
23 | player->recvbuffer = (wchar_t *) SAFE_malloc (player->recvbuffer_size, sizeof (wchar_t), false); |
24 | player->recvbuffer[0] = 0; |
24 | player->recvbuffer[0] = 0; |
25 | 25 |