/external/quake/quake/src/WinQuake/ |
snd_next.cpp | 31 shm = malloc (size);
32 memset((void*)shm, 0, size);
34 shm->buffer = (char*)shm + sizeof(dma_t);
35 shm->channels = 2;
36 shm->speed = desired_speed;
37 shm->samplebits = desired_bits;
38 shm->samples = 16384 / (desired_bits / 8);
39 shm->submission_chunk = 1;
48 shm->samplepos = (int)(realtime*shm->speed*shm->channels) & (shm->samples-1); [all...] |
snd_linux.cpp | 26 #include <sys/shm.h> 92 shm = &sn; 93 shm->splitbuffer = 0; 98 if (s) shm->samplebits = atoi(s); 100 shm->samplebits = atoi(com_argv[i+1]); 101 if (shm->samplebits != 16 && shm->samplebits != 8) 104 if (fmt & AFMT_S16_LE) shm->samplebits = 16; 105 else if (fmt & AFMT_U8) shm->samplebits = 8; 109 if (s) shm->speed = atoi(s) [all...] |
snd_dos.cpp | 208 WriteDSP(shm->speed>>8);
209 WriteDSP(shm->speed&0xff);
213 WriteDSP((shm->samples-1) & 0xff); // # of samples - 1
214 WriteDSP((shm->samples-1) >> 8);
232 timeconstant = 65536-(256000000/(shm->channels*shm->speed));
239 WriteDSP((shm->samples-1) & 0xff); // # of samples - 1
240 WriteDSP((shm->samples-1) >> 8);
250 timeconstant = 65536-(256000000/(shm->channels*shm->speed)); [all...] |
snd_sun.cpp | 26 #include <sys/shm.h> 62 shm = &sn; 63 shm->splitbuffer = 0; 94 shm->speed = 11025; 113 shm->samplebits = 16; 114 shm->channels = 1; 117 shm->samplebits = 16; 118 shm->channels = 2; 121 shm->soundalive = true; 122 shm->samples = sizeof(dma_buffer) / (shm->samplebits/8) [all...] |
snd_win.cpp | 195 shm = &sn;
197 shm->channels = 2;
198 shm->samplebits = 16;
199 shm->speed = 11025;
203 format.nChannels = shm->channels;
204 format.wBitsPerSample = shm->samplebits;
205 format.nSamplesPerSec = shm->speed;
324 shm->channels = format.nChannels;
325 shm->samplebits = format.wBitsPerSample;
326 shm->speed = format.nSamplesPerSec; [all...] |
snd_dma.cpp | 47 volatile dma_t *shm = 0; variable 114 if (!sound_started || !shm) 120 Con_Printf("%5d stereo\n", shm->channels - 1); 121 Con_Printf("%5d samples\n", shm->samples); 122 Con_Printf("%5d samplepos\n", shm->samplepos); 123 Con_Printf("%5d samplebits\n", shm->samplebits); 124 Con_Printf("%5d submission_chunk\n", shm->submission_chunk); 125 Con_Printf("%5d speed\n", shm->speed); 126 Con_Printf("0x%x dma buffer\n", shm->buffer); 217 shm = (volatile dma_t*) Hunk_AllocName(sizeof(*shm), "shm") [all...] |
snd_android.cpp | 317 shm = &sn; 320 shm->splitbuffer = false; // Not used. 321 shm->samplebits = 16; 322 shm->speed = 11025; 323 shm->channels = 2; 324 shm->samples = TOTAL_BUFFER_SIZE / BYTES_PER_SAMPLE; 325 shm->samplepos = 0; // Not used. 326 shm->buffer = (unsigned char*) pcmData; 327 shm->submission_chunk = 1; // Not used. 329 shm->soundalive = true [all...] |
snd_gus.cpp | 1087 shm = &sn;
1092 shm->speed = 11025;
1097 shm->speed = Q_atoi(com_argv[rc+1]);
1100 if (shm->speed>48000)
1101 shm->speed=48000;
1106 if (shm->speed <= CodecRate->Rate)
1108 shm->speed=CodecRate->Rate;
1117 shm->channels = 2;
1118 shm->samplebits = 16;
1135 shm->soundalive = true; [all...] |
snd_mix.cpp | 118 pbuf = (DWORD *)shm->buffer; 124 lpos = lpaintedtime & ((shm->samples>>1)-1); 128 snd_linear_count = (shm->samples>>1) - lpos; 164 if (shm->samplebits == 16 && shm->channels == 2) 171 count = (endtime - paintedtime) * shm->channels; 172 out_mask = shm->samples - 1; 173 out_idx = paintedtime * shm->channels & out_mask; 174 step = 3 - shm->channels; 205 pbuf = (DWORD *)shm->buffer [all...] |
snd_mem.cpp | 46 stepscale = (float)inrate / shm->speed; // this is usually 0.5, 1, or 2 53 sc->speed = shm->speed; 134 stepscale = (float)info.rate / shm->speed;
|
/external/quake/quake/src/QW/client/ |
snd_linux.c | 7 #include <sys/shm.h> 73 shm = &sn; 74 shm->splitbuffer = 0; 79 if (s) shm->samplebits = atoi(s); 81 shm->samplebits = atoi(com_argv[i+1]); 82 if (shm->samplebits != 16 && shm->samplebits != 8) 85 if (fmt & AFMT_S16_LE) shm->samplebits = 16; 86 else if (fmt & AFMT_U8) shm->samplebits = 8; 90 if (s) shm->speed = atoi(s) [all...] |
snd_win.c | 193 shm = &sn;
195 shm->channels = 2;
196 shm->samplebits = 16;
197 shm->speed = 11025;
201 format.nChannels = shm->channels;
202 format.wBitsPerSample = shm->samplebits;
203 format.nSamplesPerSec = shm->speed;
322 shm->channels = format.nChannels;
323 shm->samplebits = format.wBitsPerSample;
324 shm->speed = format.nSamplesPerSec; [all...] |
snd_dma.c | 50 volatile dma_t *shm = 0; variable 117 if (!sound_started || !shm) 123 Con_Printf("%5d stereo\n", shm->channels - 1); 124 Con_Printf("%5d samples\n", shm->samples); 125 Con_Printf("%5d samplepos\n", shm->samplepos); 126 Con_Printf("%5d samplebits\n", shm->samplebits); 127 Con_Printf("%5d submission_chunk\n", shm->submission_chunk); 128 Con_Printf("%5d speed\n", shm->speed); 129 Con_Printf("0x%x dma buffer\n", shm->buffer); 220 shm = (void *) Hunk_AllocName(sizeof(*shm), "shm") [all...] |
snd_mix.c | 110 pbuf = (DWORD *)shm->buffer;
116 lpos = lpaintedtime & ((shm->samples>>1)-1);
120 snd_linear_count = (shm->samples>>1) - lpos;
156 if (shm->samplebits == 16 && shm->channels == 2)
163 count = (endtime - paintedtime) * shm->channels;
164 out_mask = shm->samples - 1;
165 out_idx = paintedtime * shm->channels & out_mask;
166 step = 3 - shm->channels;
197 pbuf = (DWORD *)shm->buffer; [all...] |
sound.h | 151 extern volatile dma_t *shm;
|
snd_mem.c | 46 stepscale = (float)inrate / shm->speed; // this is usually 0.5, 1, or 2 53 sc->speed = shm->speed; 134 stepscale = (float)info.rate / shm->speed;
|
/external/qemu/distrib/sdl-1.2.15/src/video/picogui/ |
SDL_pgvideo.h | 35 #include <sys/shm.h> 46 struct pgshmbitmap shm; /* shared memory info */ member in struct:SDL_PrivateVideoData
|
SDL_pgvideo.c | 151 * but since this is based on SHM it's not important to be able to specify 211 this->hidden->shm = *pgMakeSHMBitmap(this->hidden->bitmap); 212 current->pixels = shmat(shmget(this->hidden->shm.shm_key, 213 this->hidden->shm.shm_length,0),NULL,0); 235 0,0,this->hidden->shm.width,this->hidden->shm.height,this->hidden->bitmap); 239 current->w = this->hidden->shm.width; 240 current->h = this->hidden->shm.height; 241 current->pitch = this->hidden->shm.pitch; 244 current->format->BitsPerPixel = this->hidden->shm.bpp [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/mme/ |
SDL_mmeaudio.h | 43 struct SharedMem *shm; member in struct:SDL_PrivateAudioData 47 #define shm (this->hidden->shm) macro
|
SDL_mmeaudio.c | 126 shm = mmeAllocMem(sizeof(*shm)); 127 if ( shm == NULL ) { 128 SDL_SetError("Out of memory: shm"); 131 shm->sound = 0; 132 shm->wFmt.wf.wFormatTag = WAVE_FORMAT_PCM; 139 shm->wFmt.wBitsPerSample = 8; 144 shm->wFmt.wBitsPerSample = 16; 151 shm->wFmt.wf.nChannels = spec->channels; 152 shm->wFmt.wf.nSamplesPerSec = spec->freq [all...] |
/external/valgrind/main/memcheck/tests/darwin/ |
scalar_nocancel.c | 6 #include <sys/shm.h>
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/sys/ |
shm.h | 31 #include <bits/shm.h> 65 #endif /* sys/shm.h */
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sys/ |
shm.h | 31 #include <bits/shm.h> 65 #endif /* sys/shm.h */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/sys/ |
shm.h | 31 #include <bits/shm.h> 65 #endif /* sys/shm.h */
|
/external/qemu/distrib/sdl-1.2.15/src/video/x11/ |
SDL_x11dyn.h | 44 #include <sys/shm.h>
|