/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/unused/ |
A D | jmemdos.c | 338 XMSspec spec; in read_xms_store() local 473 #define SRC_TYPE(spec) FIELD_AT(spec,4,char) argument 474 #define SRC_HANDLE(spec) FIELD_AT(spec,5,EMSH) argument 475 #define SRC_OFFSET(spec) FIELD_AT(spec,7,unsigned short) argument 476 #define SRC_PAGE(spec) FIELD_AT(spec,9,unsigned short) argument 477 #define SRC_PTR(spec) FIELD_AT(spec,7,EMSPTR) argument 478 #define DST_TYPE(spec) FIELD_AT(spec,11,char) argument 479 #define DST_HANDLE(spec) FIELD_AT(spec,12,EMSH) argument 480 #define DST_OFFSET(spec) FIELD_AT(spec,14,unsigned short) argument 481 #define DST_PAGE(spec) FIELD_AT(spec,16,unsigned short) argument [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/sun/ |
A D | SDL_sunaudio.c | 115 incr = this->spec.freq / 8; in SUNAUDIO_PlayDevice() 165 this->spec.size) < 0) { in SUNAUDIO_PlayDevice() 224 desired_freq = this->spec.freq; in SUNAUDIO_OpenDevice() 293 this->spec.channels = 1; in SUNAUDIO_OpenDevice() 294 this->spec.freq = 8000; in SUNAUDIO_OpenDevice() 310 this->spec.freq = desired_freq; in SUNAUDIO_OpenDevice() 312 (this->spec.freq / 8); in SUNAUDIO_OpenDevice() 318 this->spec.channels = 1; in SUNAUDIO_OpenDevice() 327 this->spec.format, this->spec.channels, this->spec.freq); in SUNAUDIO_OpenDevice() 331 SDL_CalculateAudioSpec(&this->spec); in SUNAUDIO_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/openslES/ |
A D | SDL_openslES.c | 242 this->spec.format = AUDIO_S16SYS; in openslES_CreatePCMRecorder() 243 this->spec.channels = 1; in openslES_CreatePCMRecorder() 250 this->spec.freq, SDL_AUDIO_BITSIZE(this->spec.format), in openslES_CreatePCMRecorder() 251 this->spec.channels, (this->spec.format & 0x1000) ? "BE" : "LE", this->spec.samples); in openslES_CreatePCMRecorder() 422 this->spec.format = AUDIO_S16SYS; in openslES_CreatePCMPlayer() 437 this->spec.format = test_format; in openslES_CreatePCMPlayer() 444 this->spec.freq, SDL_AUDIO_BITSIZE(this->spec.format), in openslES_CreatePCMPlayer() 445 this->spec.channels, (this->spec.format & 0x1000) ? "BE" : "LE", this->spec.samples); in openslES_CreatePCMPlayer() 462 switch (this->spec.channels) in openslES_CreatePCMPlayer() 490 this->spec.channels = 2; in openslES_CreatePCMPlayer() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/dsp/ |
A D | SDL_dspaudio.c | 90 if (this->spec.channels > 8) in DSP_OpenDevice() 91 this->spec.channels = 8; in DSP_OpenDevice() 92 else if (this->spec.channels > 4) in DSP_OpenDevice() 93 this->spec.channels = 4; in DSP_OpenDevice() 94 else if (this->spec.channels > 2) in DSP_OpenDevice() 95 this->spec.channels = 2; in DSP_OpenDevice() 193 value = this->spec.channels; in DSP_OpenDevice() 198 this->spec.channels = value; in DSP_OpenDevice() 201 value = this->spec.freq; in DSP_OpenDevice() 206 this->spec.freq = value; in DSP_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/wasapi/ |
A D | SDL_wasapi.c | 197 (oldspec->format == this->spec.format) && in UpdateAudioStream() 198 (oldspec->freq == this->spec.freq) ) { in UpdateAudioStream() 205 this->spec.channels, this->spec.freq, in UpdateAudioStream() 213 this->spec.channels, this->spec.freq); in UpdateAudioStream() 228 this->work_buffer_len = this->spec.size; in UpdateAudioStream() 352 SDL_Delay(((this->spec.samples * 1000) / this->spec.freq)); in WASAPI_CaptureFromDevice() 507 const SDL_AudioSpec oldspec = this->spec; in WASAPI_PrepDevice() 563 this->spec.format = test_format; in WASAPI_PrepDevice() 617 SDL_CalculateAudioSpec(&this->spec); in WASAPI_PrepDevice() 619 this->hidden->framesize = (SDL_AUDIO_BITSIZE(this->spec.format) / 8) * this->spec.channels; in WASAPI_PrepDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/psp/ |
A D | SDL_pspaudio.c | 54 switch (this->spec.format & 0xff) { in PSPAUDIO_OpenDevice() 57 this->spec.format = AUDIO_S16LSB; in PSPAUDIO_OpenDevice() 64 this->spec.samples = PSP_AUDIO_SAMPLE_ALIGN(this->spec.samples); in PSPAUDIO_OpenDevice() 65 this->spec.freq = 44100; in PSPAUDIO_OpenDevice() 68 SDL_CalculateAudioSpec(&this->spec); in PSPAUDIO_OpenDevice() 73 mixlen = this->spec.size * NUM_BUFFERS; in PSPAUDIO_OpenDevice() 80 if (this->spec.channels == 1) { in PSPAUDIO_OpenDevice() 83 this->spec.channels = 2; in PSPAUDIO_OpenDevice() 86 this->hidden->channel = sceAudioChReserve(PSP_AUDIO_NEXT_CHANNEL, this->spec.samples, format); in PSPAUDIO_OpenDevice() 95 this->hidden->mixbufs[i] = &this->hidden->rawbuf[i * this->spec.size]; in PSPAUDIO_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/sndio/ |
A D | SDL_sndioaudio.c | 270 par.rate = this->spec.freq; in SNDIO_OpenDevice() 271 par.pchan = this->spec.channels; in SNDIO_OpenDevice() 272 par.round = this->spec.samples; in SNDIO_OpenDevice() 305 this->spec.format = AUDIO_S32LSB; in SNDIO_OpenDevice() 307 this->spec.format = AUDIO_S32MSB; in SNDIO_OpenDevice() 317 this->spec.format = AUDIO_S8; in SNDIO_OpenDevice() 319 this->spec.format = AUDIO_U8; in SNDIO_OpenDevice() 324 this->spec.freq = par.rate; in SNDIO_OpenDevice() 325 this->spec.channels = par.pchan; in SNDIO_OpenDevice() 326 this->spec.samples = par.round; in SNDIO_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/emscripten/ |
A D | SDL_emscriptenaudio.c | 35 const int framelen = (SDL_AUDIO_BITSIZE(this->spec.format) / 8) * this->spec.channels; in FeedAudioDevice() 67 SDL_assert(this->spec.size == stream_len); in HandleAudioProcess() 82 if (got != this->spec.size) { in HandleAudioProcess() 83 SDL_memset(this->work_buffer, this->spec.silence, this->spec.size); in HandleAudioProcess() 121 }, this->work_buffer, (this->spec.size / sizeof (float)) / this->spec.channels); in HandleCaptureProcess() 126 SDL_assert(this->spec.size == stream_len); in HandleCaptureProcess() 230 this->spec.format = test_format; in EMSCRIPTENAUDIO_OpenDevice() 255 this->spec.freq = EM_ASM_INT_V({ in EMSCRIPTENAUDIO_OpenDevice() 260 SDL_CalculateAudioSpec(&this->spec); in EMSCRIPTENAUDIO_OpenDevice() 319 }, this->spec.channels, this->spec.samples, HandleCaptureProcess, this); in EMSCRIPTENAUDIO_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/netbsd/ |
A D | SDL_netbsdaudio.c | 119 this->spec.format, in NETBSDAUDIO_Status() 120 this->spec.size); in NETBSDAUDIO_Status() 283 this->spec.format = format; in NETBSDAUDIO_OpenDevice() 286 SDL_CalculateAudioSpec(&this->spec); in NETBSDAUDIO_OpenDevice() 289 info.blocksize = this->spec.size; in NETBSDAUDIO_OpenDevice() 292 prinfo->sample_rate = this->spec.freq; in NETBSDAUDIO_OpenDevice() 293 prinfo->channels = this->spec.channels; in NETBSDAUDIO_OpenDevice() 297 this->spec.freq = prinfo->sample_rate; in NETBSDAUDIO_OpenDevice() 298 this->spec.channels = prinfo->channels; in NETBSDAUDIO_OpenDevice() 302 this->hidden->mixlen = this->spec.size; in NETBSDAUDIO_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/fusionsound/ |
A D | SDL_fsaudio.c | 232 this->spec.format = test_format; in SDL_FS_OpenDevice() 240 this->hidden->mixsamples = this->spec.size / bytes / this->spec.channels; in SDL_FS_OpenDevice() 245 desc.samplerate = this->spec.freq; in SDL_FS_OpenDevice() 246 desc.buffersize = this->spec.size * FUSION_BUFFERS; in SDL_FS_OpenDevice() 247 desc.channels = this->spec.channels; in SDL_FS_OpenDevice() 263 this->spec.freq = desc.samplerate; in SDL_FS_OpenDevice() 264 this->spec.size = in SDL_FS_OpenDevice() 266 this->spec.channels = desc.channels; in SDL_FS_OpenDevice() 269 SDL_CalculateAudioSpec(&this->spec); in SDL_FS_OpenDevice() 272 this->hidden->mixlen = this->spec.size; in SDL_FS_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/paudio/ |
A D | SDL_paudio.c | 263 if (this->spec.channels > 1) in PAUDIO_OpenDevice() 264 this->spec.channels = 2; in PAUDIO_OpenDevice() 266 this->spec.channels = 1; in PAUDIO_OpenDevice() 313 paud_init.srate = this->spec.freq; in PAUDIO_OpenDevice() 316 paud_init.channels = this->spec.channels; in PAUDIO_OpenDevice() 375 this->spec.format = test_format; in PAUDIO_OpenDevice() 389 / bytes_per_sample / this->spec.channels; in PAUDIO_OpenDevice() 396 SDL_CalculateAudioSpec(&this->spec); in PAUDIO_OpenDevice() 434 this->hidden->mixlen = this->spec.size; in PAUDIO_OpenDevice() 439 SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size); in PAUDIO_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/alios/ |
A D | SDL_alios_audio.c | 127 for (test_format = SDL_FirstAudioFormat(this->spec.format); test_format && (status < 0);) { in AOS_OpenDevice() 151 this->spec.format = test_format; in AOS_OpenDevice() 155 channels = this->spec.channels; in AOS_OpenDevice() 158 rate = this->spec.freq; in AOS_OpenDevice() 161 SDL_CalculateAudioSpec(&this->spec); in AOS_OpenDevice() 165 this->hidden->mixlen = this->spec.size; in AOS_OpenDevice() 170 SDL_memset(this->hidden->mixbuf, this->spec.silence, this->hidden->mixlen); in AOS_OpenDevice() 202 const int frame_size = ((SDL_AUDIO_BITSIZE(this->spec.format)) / 8) * this->spec.channels; in ALSA_PlayDevice() 203 snd_pcm_uframes_t frames_left = ((snd_pcm_uframes_t) this->spec.samples); in ALSA_PlayDevice() 240 Uint32 delay = ((this->spec.samples * 1000) / this->spec.freq) * 2; in AOS_CloseDevice()
|
/AliOS-Things-master/components/SDL2/src/audio/nacl/ |
A D | SDL_naclaudio.c | 60 SDL_memset(stream, _this->spec.silence, len); in nacl_audio_callback() 64 SDL_assert(_this->spec.size == len); in nacl_audio_callback() 84 SDL_memset(stream, _this->spec.silence, len); in nacl_audio_callback() 113 _this->spec.freq = 44100; in NACLAUDIO_OpenDevice() 114 _this->spec.format = AUDIO_S16LSB; in NACLAUDIO_OpenDevice() 115 _this->spec.channels = 2; in NACLAUDIO_OpenDevice() 116 _this->spec.samples = ppb_audiocfg->RecommendSampleFrameCount( in NACLAUDIO_OpenDevice() 122 SDL_CalculateAudioSpec(&_this->spec); in NACLAUDIO_OpenDevice() 126 ppb_audiocfg->CreateStereo16Bit(instance, PP_AUDIOSAMPLERATE_44100, _this->spec.samples), in NACLAUDIO_OpenDevice()
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testresample.c | 18 SDL_AudioSpec spec; in main() local 45 if (SDL_LoadWAV(argv[1], &spec, &data, &len) == NULL) { in main() 51 if (SDL_BuildAudioCVT(&cvt, spec.format, spec.channels, spec.freq, in main() 52 spec.format, cvtchans, cvtfreq) == -1) { in main() 87 bitsize = SDL_AUDIO_BITSIZE(spec.format); in main() 96 SDL_WriteLE16(io, SDL_AUDIO_ISFLOAT(spec.format) ? 3 : 1); /* uncompressed */ in main()
|
A D | testmultiaudio.c | 20 static SDL_AudioSpec spec; variable 48 SDL_memset(stream, spec.silence, len); in play_through_once() 86 spec.callback = play_through_once; in test_multi_audio() 94 spec.userdata = &cbd[0]; in test_multi_audio() 95 cbd[0].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL, 0); in test_multi_audio() 122 spec.userdata = &cbd[i]; in test_multi_audio() 123 cbd[i].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL, 0); in test_multi_audio() 188 if (SDL_LoadWAV(argv[1], &spec, &sound, &soundlen) == NULL) { in main()
|
/AliOS-Things-master/components/SDL2/src/audio/directsound/ |
A D | SDL_directsound.c | 272 cursor /= this->spec.size; in DSOUND_GetDeviceBuf() 288 cursor *= this->spec.size; in DSOUND_GetDeviceBuf() 292 this->spec.size, in DSOUND_GetDeviceBuf() 317 SDL_assert(buflen == this->spec.size); in DSOUND_CaptureFromDevice() 339 SDL_assert(ptr1len == this->spec.size); in DSOUND_CaptureFromDevice() 360 h->lastchunk = cursor / this->spec.size; in DSOUND_FlushCapture() 517 this->spec.format = test_format; in DSOUND_OpenDevice() 520 SDL_CalculateAudioSpec(&this->spec); in DSOUND_OpenDevice() 522 bufsize = numchunks * this->spec.size; in DSOUND_OpenDevice() 538 wfmt.nChannels = this->spec.channels; in DSOUND_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/haiku/ |
A D | SDL_haikuaudio.cc | 58 SDL_memset(stream, audio->spec.silence, len); in FillSound() 62 SDL_assert(audio->spec.size == len); in FillSound() 83 SDL_memset(stream, audio->spec.silence, len); in FillSound() 128 SDL_AudioFormat test_format = SDL_FirstAudioFormat(_this->spec.format); in HAIKUAUDIO_OpenDevice() 140 format.frame_rate = (float) _this->spec.freq; in HAIKUAUDIO_OpenDevice() 141 format.channel_count = _this->spec.channels; /* !!! FIXME: support > 2? */ in HAIKUAUDIO_OpenDevice() 144 _this->spec.format = test_format; in HAIKUAUDIO_OpenDevice() 193 SDL_CalculateAudioSpec(&_this->spec); in HAIKUAUDIO_OpenDevice() 195 format.buffer_size = _this->spec.size; in HAIKUAUDIO_OpenDevice()
|
/AliOS-Things-master/components/SDL2/src/audio/disk/ |
A D | SDL_diskaudio.c | 57 1, this->spec.size); in DISKAUDIO_PlayDevice() 60 if (written != this->spec.size) { in DISKAUDIO_PlayDevice() 93 SDL_memset(buffer, this->spec.silence, buflen); in DISKAUDIO_CaptureFromDevice() 145 this->hidden->io_delay = ((this->spec.samples * 1000) / this->spec.freq); in DISKAUDIO_OpenDevice() 156 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->spec.size); in DISKAUDIO_OpenDevice() 160 SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size); in DISKAUDIO_OpenDevice()
|
/AliOS-Things-master/components/SDL2/src/audio/esd/ |
A D | SDL_esdaudio.c | 228 for (test_format = SDL_FirstAudioFormat(this->spec.format); in ESD_OpenDevice() 251 if (this->spec.channels == 1) { in ESD_OpenDevice() 257 this->spec.samples = ESD_BUF_SIZE; /* Darn, no way to change this yet */ in ESD_OpenDevice() 262 SDL_NAME(esd_play_stream) (format, this->spec.freq, NULL, in ESD_OpenDevice() 270 SDL_CalculateAudioSpec(&this->spec); in ESD_OpenDevice() 272 (float) (this->spec.samples * 1000) / this->spec.freq; in ESD_OpenDevice() 276 this->hidden->mixlen = this->spec.size; in ESD_OpenDevice() 281 SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size); in ESD_OpenDevice()
|
/AliOS-Things-master/components/SDL2/src/audio/alsa/ |
A D | SDL_alsa_audio.c | 325 if (this->spec.channels == 6) { in swizzle_alsa_channels() 453 Uint32 delay = ((this->spec.samples * 1000) / this->spec.freq) * 2; in ALSA_CloseDevice() 475 persize = this->spec.samples; in ALSA_set_buffer_size() 502 this->spec.samples = persize; in ALSA_set_buffer_size() 623 this->spec.format = test_format; in ALSA_OpenDevice() 644 channels = this->spec.channels; in ALSA_OpenDevice() 650 this->spec.channels = channels; in ALSA_OpenDevice() 654 rate = this->spec.freq; in ALSA_OpenDevice() 661 this->spec.freq = rate; in ALSA_OpenDevice() 694 SDL_CalculateAudioSpec(&this->spec); in ALSA_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/nas/ |
A D | SDL_nasaudio.c | 227 } while ((br == sizeof (buf)) && (total < this->spec.size)); in NAS_FlushCapture() 311 const int nch = this->spec.channels; in find_device() 326 this->spec.channels = AuDeviceNumTracks(dev); in find_device() 350 for (test_format = SDL_FirstAudioFormat(this->spec.format); in NAS_OpenDevice() 360 this->spec.format = test_format; in NAS_OpenDevice() 373 buffer_size = this->spec.freq; in NAS_OpenDevice() 381 SDL_CalculateAudioSpec(&this->spec); in NAS_OpenDevice() 386 AuMakeElementExportClient(elms + 1, 0, this->spec.freq, format, in NAS_OpenDevice() 390 AuMakeElementImportClient(elms, this->spec.freq, format, in NAS_OpenDevice() 408 this->hidden->mixlen = this->spec.size; in NAS_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/arts/ |
A D | SDL_artsaudio.c | 234 for (test_format = SDL_FirstAudioFormat(this->spec.format); in ARTS_OpenDevice() 259 this->spec.format = test_format; in ARTS_OpenDevice() 270 this->hidden->stream = SDL_NAME(arts_play_stream) (this->spec.freq, in ARTS_OpenDevice() 272 this->spec.channels, in ARTS_OpenDevice() 279 SDL_CalculateAudioSpec(&this->spec); in ARTS_OpenDevice() 282 for (frag_spec = 0; (0x01 << frag_spec) < this->spec.size; ++frag_spec); in ARTS_OpenDevice() 283 if ((0x01 << frag_spec) != this->spec.size) { in ARTS_OpenDevice() 297 this->spec.size = SDL_NAME(arts_stream_get) (this->hidden->stream, in ARTS_OpenDevice() 301 this->hidden->mixlen = this->spec.size; in ARTS_OpenDevice() 306 SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size); in ARTS_OpenDevice()
|
/AliOS-Things-master/components/SDL2/src/audio/ |
A D | SDL_audio.c | 758 SDL_memset(data, device->spec.silence, device->spec.size); in SDL_RunAudio() 766 const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq); in SDL_RunAudio() 778 SDL_Delay(((device->spec.samples * 1000) / device->spec.freq) * 2); in SDL_RunAudio() 792 const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq); in SDL_CaptureAudio() 1334 device->spec = *obtained; in open_audio_device() 1399 device->spec.channels, device->spec.freq, in open_audio_device() 1404 device->spec.channels, device->spec.freq); in open_audio_device() 1691 spec->silence = SDL_SilenceValueForFormat(spec->format); in SDL_CalculateAudioSpec() 1692 spec->size = SDL_AUDIO_BITSIZE(spec->format) / 8; in SDL_CalculateAudioSpec() 1693 spec->size *= spec->channels; in SDL_CalculateAudioSpec() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/jack/ |
A D | SDL_jackaudio.c | 166 const int total_channels = this->spec.channels; in jackProcessPlaybackCallback() 167 const int total_frames = this->spec.samples; in jackProcessPlaybackCallback() 172 SDL_memset(this->hidden->iobuffer, '\0', this->spec.size); in jackProcessPlaybackCallback() 216 const int total_channels = this->spec.channels; in jackProcessCaptureCallback() 217 const int total_frames = this->spec.samples; in jackProcessCaptureCallback() 265 const int channels = this->spec.channels; in JACK_CloseDevice() 343 this->spec.format = AUDIO_F32SYS; in JACK_OpenDevice() 344 this->spec.freq = JACK_jack_get_sample_rate(client); in JACK_OpenDevice() 345 this->spec.channels = channels; in JACK_OpenDevice() 346 this->spec.samples = JACK_jack_get_buffer_size(client); in JACK_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/winmm/ |
A D | SDL_winmm.c | 178 SDL_assert(buflen == this->spec.size); in WINMM_CaptureFromDevice() 196 return this->spec.size; in WINMM_CaptureFromDevice() 260 if (SDL_AUDIO_ISFLOAT(this->spec.format)) { in PrepWaveFormat() 265 pfmt->wBitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format); in PrepWaveFormat() 267 pfmt->nChannels = this->spec.channels; in PrepWaveFormat() 268 pfmt->nSamplesPerSec = this->spec.freq; in PrepWaveFormat() 307 if (this->spec.channels > 2) in WINMM_OpenDevice() 316 this->spec.format = test_format; in WINMM_OpenDevice() 335 SDL_CalculateAudioSpec(&this->spec); in WINMM_OpenDevice() 385 (Uint8 *) SDL_malloc(NUM_BUFFERS * this->spec.size); in WINMM_OpenDevice() [all …]
|