Home
last modified time | relevance | path

Searched refs:sound_buffer (Results 1 – 25 of 65) sorted by relevance

123

/dports/games/frotz/frotz-73eec90ebb159ed687b74cbaf81e135c3e7e390b/src/curses/
H A Dux_audio_oss.c206 free(sound_buffer); in os_prepare_sample()
207 sound_buffer = NULL; in os_prepare_sample()
236 sound_buffer = NULL; in os_prepare_sample()
240 if (!sound_buffer) { in os_prepare_sample()
251 sound_buffer = realloc(sound_buffer, read_length); in os_prepare_sample()
252 if (! sound_buffer) { in os_prepare_sample()
260 free(sound_buffer); in os_prepare_sample()
261 sound_buffer = NULL; in os_prepare_sample()
302 if (! sound_buffer) in os_start_sample()
382 free(sound_buffer); in os_finish_with_sample()
[all …]
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/burn/snd/
H A Dmsm5232.cpp70 static INT32 *sound_buffer[11]; variable
305 BurnFree(sound_buffer[j]); in MSM5232Exit()
306 sound_buffer[j] = NULL; in MSM5232Exit()
654 if (sound_buffer[j]) { in MSM5232SetClock()
655 BurnFree(sound_buffer[j]); in MSM5232SetClock()
673 INT32 *buf1 = sound_buffer[0]; in MSM5232Update()
674 INT32 *buf2 = sound_buffer[1]; in MSM5232Update()
675 INT32 *buf3 = sound_buffer[2]; in MSM5232Update()
676 INT32 *buf4 = sound_buffer[3]; in MSM5232Update()
677 INT32 *buf5 = sound_buffer[4]; in MSM5232Update()
[all …]
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/burn/snd/
H A Dmsm5232.cpp70 static INT32 *sound_buffer[11]; variable
305 BurnFree(sound_buffer[j]); in MSM5232Exit()
306 sound_buffer[j] = NULL; in MSM5232Exit()
650 if (sound_buffer[j]) { in MSM5232SetClock()
651 BurnFree(sound_buffer[j]); in MSM5232SetClock()
669 INT32 *buf1 = sound_buffer[0]; in MSM5232Update()
670 INT32 *buf2 = sound_buffer[1]; in MSM5232Update()
671 INT32 *buf3 = sound_buffer[2]; in MSM5232Update()
672 INT32 *buf4 = sound_buffer[3]; in MSM5232Update()
673 INT32 *buf5 = sound_buffer[4]; in MSM5232Update()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/backends/platform/wii/
H A Dosystem_sfx.cpp41 static u8 *sound_buffer[SFX_BUFFERS]; variable
45 AUDIO_InitDMA((u32) sound_buffer[sb_hw], SFX_THREAD_FRAG_SIZE); in audio_switch_buffers()
66 mixer->mixCallback(sound_buffer[sb_sw], SFX_THREAD_FRAG_SIZE); in sfx_thread_func()
67 DCFlushRange(sound_buffer[sb_sw], SFX_THREAD_FRAG_SIZE); in sfx_thread_func()
99 sound_buffer[i] = (u8 *) memalign(32, SFX_THREAD_FRAG_SIZE); in initSfx()
100 memset(sound_buffer[i], 0, SFX_THREAD_FRAG_SIZE); in initSfx()
101 DCFlushRange(sound_buffer[i], SFX_THREAD_FRAG_SIZE); in initSfx()
110 AUDIO_InitDMA((u32) sound_buffer[sb_hw], SFX_THREAD_FRAG_SIZE); in initSfx()
132 free(sound_buffer[i]); in deinitSfx()
/dports/games/scummvm/scummvm-2.5.1/backends/platform/wii/
H A Dosystem_sfx.cpp41 static u8 *sound_buffer[SFX_BUFFERS]; variable
45 AUDIO_InitDMA((u32) sound_buffer[sb_hw], SFX_THREAD_FRAG_SIZE); in audio_switch_buffers()
66 mixer->mixCallback(sound_buffer[sb_sw], SFX_THREAD_FRAG_SIZE); in sfx_thread_func()
67 DCFlushRange(sound_buffer[sb_sw], SFX_THREAD_FRAG_SIZE); in sfx_thread_func()
99 sound_buffer[i] = (u8 *) memalign(32, SFX_THREAD_FRAG_SIZE); in initSfx()
100 memset(sound_buffer[i], 0, SFX_THREAD_FRAG_SIZE); in initSfx()
101 DCFlushRange(sound_buffer[i], SFX_THREAD_FRAG_SIZE); in initSfx()
110 AUDIO_InitDMA((u32) sound_buffer[sb_hw], SFX_THREAD_FRAG_SIZE); in initSfx()
132 free(sound_buffer[i]); in deinitSfx()
/dports/games/libretro-snes9x/snes9x-73aa348/gtk/src/
H A Dgtk_sound_driver_portaudio.cpp18 sound_buffer = NULL; in S9xPortAudioSoundDriver()
42 if (sound_buffer) in terminate()
44 free(sound_buffer); in terminate()
45 sound_buffer = NULL; in terminate()
77 if ((sound_buffer_size < frames) || sound_buffer == NULL) in set_buffer_min()
79 sound_buffer = (uint8 *)realloc(sound_buffer, frames << 2); in set_buffer_min()
193 memset(sound_buffer, 0, output_buffer_size << 1); in samples_available()
194 Pa_WriteStream(audio_stream, sound_buffer, output_buffer_size >> 1); in samples_available()
223 S9xMixSamples(sound_buffer, frames << 1); in samples_available()
224 Pa_WriteStream(audio_stream, sound_buffer, frames); in samples_available()
H A Dgtk_sound_driver_oss.cpp23 sound_buffer = NULL; in S9xOSSSoundDriver()
42 if (sound_buffer) in terminate()
44 free(sound_buffer); in terminate()
45 sound_buffer = NULL; in terminate()
200 sound_buffer = (uint8 *)realloc(sound_buffer, samples_to_write * 2); in samples_available()
204 S9xMixSamples(sound_buffer, samples_to_write); in samples_available()
214 ((char *)sound_buffer) + bytes_written, in samples_available()
H A Dgtk_sound_driver_alsa.cpp22 sound_buffer = NULL; in S9xAlsaSoundDriver()
43 if (sound_buffer) in terminate()
45 free(sound_buffer); in terminate()
46 sound_buffer = NULL; in terminate()
207 if (sound_buffer_size < bytes || sound_buffer == NULL) in samples_available()
209 sound_buffer = (uint8 *)realloc(sound_buffer, bytes); in samples_available()
213 S9xMixSamples(sound_buffer, frames * 2); in samples_available()
222 sound_buffer + in samples_available()
/dports/emulators/snes9x-gtk/snes9x-1.54.1/gtk/src/
H A Dgtk_sound_driver_alsa.cpp17 sound_buffer = NULL; in S9xAlsaSoundDriver()
43 if (sound_buffer) in terminate()
45 free (sound_buffer); in terminate()
46 sound_buffer = NULL; in terminate()
162 if (sound_buffer_size < bytes || sound_buffer == NULL) in samples_available()
164 sound_buffer = (uint8 *) realloc (sound_buffer, bytes); in samples_available()
168 S9xMixSamples (sound_buffer, frames << (Settings.Stereo ? 1 : 0)); in samples_available()
177 sound_buffer + in samples_available()
H A Dgtk_sound_driver_oss.cpp18 sound_buffer = NULL; in S9xOSSSoundDriver()
42 if (sound_buffer) in terminate()
44 free (sound_buffer); in terminate()
45 sound_buffer = NULL; in terminate()
192sound_buffer = (uint8 *) realloc (sound_buffer, samples_to_write << (Settings.SixteenBitSound ? 1 … in samples_available()
196 S9xMixSamples (sound_buffer, samples_to_write); in samples_available()
206 ((char *) sound_buffer) + bytes_written, in samples_available()
/dports/emulators/teo/teo/src/linux/
H A Dusound.c73 static unsigned char *sound_buffer = NULL; variable
209 if (sound_buffer != NULL) in put_sound_byte()
216 memset (sound_buffer+last_index, last_data, index-last_index); in put_sound_byte()
222 sound_buffer[(i<<1)+1]=char_data; in put_sound_byte()
239 if (sound_buffer != NULL) in usound_Close()
241 free(sound_buffer); in usound_Close()
242 sound_buffer = NULL; in usound_Close()
287 if (sound_buffer == NULL) in usound_Init()
360 if ((sound_buffer == NULL) || (handle == NULL)) in usound_Play()
372 sound_buffer[(i<<1)+1]=last_data-128; in usound_Play()
[all …]
/dports/multimedia/recordmydesktop/recordmydesktop-0.3.8.1/src/
H A Drmd_cache_audio.c61 if(pdata->sound_buffer==NULL){ in CacheSoundBuffer()
69 if(pdata->sound_buffer==NULL || !pdata->running){ in CacheSoundBuffer()
73 buff=pdata->sound_buffer; in CacheSoundBuffer()
75 pdata->sound_buffer=pdata->sound_buffer->next; in CacheSoundBuffer()
84 if((*jack_ringbuffer_read_space)(pdata->jdata->sound_buffer)>= in CacheSoundBuffer()
86 (*jack_ringbuffer_read)(pdata->jdata->sound_buffer, in CacheSoundBuffer()
/dports/games/xkoules/koules1.4/
H A Dkoules.sndsrv.hp.c28 short *sound_buffer[NUM_SOUNDS]; variable
63 sound_buffer[i] = NULL; in init()
148 sound_buffer[k] = malloc (sound_size[k] * sizeof (short) * fragsize); in read_sound()
149 if (sound_buffer[k] == NULL) in read_sound()
157 read (fd, sound_buffer[k], size); in read_sound()
159 b = ((unsigned char *) sound_buffer[k]) + sound_size[k] * fragsize; in read_sound()
160 d = sound_buffer[k] + sound_size[k] * fragsize; in read_sound()
168 bzero (((char *) sound_buffer[k]) + size, sound_size[k] * sizeof (short) * fragsize - size); in read_sound()
240 sample = sound_buffer[playing[i]] + position[i] * fragsize; in do_everything()
H A Dkoules.sndsrv.sun.c42 signed char *sound_buffer[NUM_SOUNDS]; variable
77 sound_buffer[i] = NULL; in init()
137 sound_buffer[k] = malloc (sound_size[k] * fragsize); in read_sound()
138 if (sound_buffer[k] == NULL) in read_sound()
146 read (fd, sound_buffer[k], size); in read_sound()
149 sound_buffer[k][i] ^= 0x80; in read_sound()
150 bzero (sound_buffer[k] + size, sound_size[k] * fragsize - size); in read_sound()
222 sample = sound_buffer[playing[i]] + position[i] * fragsize; in do_everything()
H A Dkoules.sndsrv.linux.c39 signed char *sound_buffer[NUM_SOUNDS]; variable
74 sound_buffer[i] = NULL; in init()
161 sound_buffer[k] = malloc ((sound_size[k] + 1) * fragsize); in read_sound()
162 if (sound_buffer[k] == NULL) in read_sound()
170 read (fd, sound_buffer[k], size); in read_sound()
173 sound_buffer[k][i] ^= 0x80; in read_sound()
174 memset (sound_buffer[k] + size, 0, sound_size[k] * fragsize - size); in read_sound()
248 sample = sound_buffer[playing[i]] + position[i] * fragsize; in do_everything()
H A Dkoules.sndsrv.freebsd.c38 signed char *sound_buffer[NUM_SOUNDS]; variable
73 sound_buffer[i] = NULL; in init()
172 sound_buffer[k] = malloc (sound_size[k] * fragsize); in read_sound()
173 if (sound_buffer[k] == NULL) in read_sound()
181 read (fd, sound_buffer[k], size); in read_sound()
184 sound_buffer[k][i] ^= 0x80; in read_sound()
185 memset (sound_buffer[k] + size, 0, sound_size[k] * fragsize - size); in read_sound()
257 sample = sound_buffer[playing[i]] + position[i] * fragsize; in do_everything()
H A Dkoules.sndsrv.sgi.c39 signed char *sound_buffer[NUM_SOUNDS]; variable
71 sound_buffer[i] = NULL; in init()
134 sound_buffer[k] = malloc(sound_size[k] * FRAGSIZE); in read_sound()
135 if (sound_buffer[k] == NULL) { in read_sound()
142 read(fd, sound_buffer[k], size); in read_sound()
147 sound_buffer[k][i] ^= 0x80; in read_sound()
148 bzero(sound_buffer[k] + size, sound_size[k] * FRAGSIZE - size); in read_sound()
223 sample = sound_buffer[playing[i]] + position[i] * FRAGSIZE; in do_everything()
/dports/emulators/frodo/Frodo-4.1b/Src/
H A DSID_Acorn.i18 ready = false; sound_buffer = NULL; in init_sound()
32 sound_buffer = new uint8[sndbufsize]; in init_sound()
45 delete sound_buffer; in ~DigitalRenderer() local
75 calc_buffer(sound_buffer, sndbufsize); in EmulateLine()
76 DigitalRenderer_NewSample(sound_buffer); in EmulateLine()
/dports/games/xgalaga/xgalaga-2.1.1.0/
H A Dxgal.sndsrv.sun.c40 signed char *sound_buffer[NUM_SOUNDS]; variable
72 sound_buffer[i]=NULL; in init()
128 sound_buffer[k]=malloc(sound_size[k]*fragsize); in read_sound()
129 if(sound_buffer[k]==NULL) in read_sound()
137 read(fd,sound_buffer[k],size); in read_sound()
139 for(i=0;i<size;i++) sound_buffer[k][i]^=0x80; in read_sound()
140 bzero(sound_buffer[k]+size,sound_size[k]*fragsize-size); in read_sound()
200 sample=sound_buffer[playing[i]]+position[i]*fragsize; in do_everything()
H A Dxgal.sndsrv.linux.c46 char *sound_buffer[NUM_SOUNDS]; variable
78 sound_buffer[i]=NULL; in init()
161 sound_buffer[k]=malloc(sound_size[k]*fragsize); in read_sound()
162 if(sound_buffer[k]==NULL) in read_sound()
170 size = read(fd,sound_buffer[k],size); in read_sound()
173 for(i=0;i<size;i++) sound_buffer[k][i]^=0x80; in read_sound()
174 memset(sound_buffer[k]+size,0,sound_size[k]*fragsize-size); in read_sound()
235 sample=sound_buffer[playing[i]]+position[i]*fragsize; in do_everything()
H A Dxgal.sndsrv.freebsd.c37 signed char *sound_buffer[NUM_SOUNDS]; variable
67 sound_buffer[i]=NULL; in init()
159 sound_buffer[k]=malloc(sound_size[k]*fragsize); in read_sound()
160 if(sound_buffer[k]==NULL) in read_sound()
168 read(fd,sound_buffer[k],size); in read_sound()
170 for(i=0;i<size;i++) sound_buffer[k][i]^=0x80; in read_sound()
171 memset(sound_buffer[k]+size,0,sound_size[k]*fragsize-size); in read_sound()
237 sample=sound_buffer[playing[i]]+position[i]*fragsize; in do_everything()
/dports/x11/workrave/workrave-1.10.44/frontend/common/src/win32/
H A DW32DirectSoundPlayer.cc323 sound_buffer = NULL; in SoundClip()
334 if (sound_buffer != NULL) in ~SoundClip()
336 sound_buffer->Release(); in ~SoundClip()
337 sound_buffer = NULL; in ~SoundClip()
397 if (FAILED(hr) || sound_buffer == NULL) in init()
465 sound_buffer->SetCurrentPosition(0); in fill_buffer()
478 hr = sound_buffer->GetStatus(&status); in is_buffer_lost()
497 hr = sound_buffer->Restore(); in restore_buffer()
516 HRESULT hr = sound_buffer->Play(0, 0, 0); in play()
532 if (sound_buffer != NULL) in set_volume()
[all …]
/dports/audio/libmikmod/libmikmod-3.3.11.1/drivers/
H A Ddrv_dc.c45 static SBYTE sound_buffer[SND_STREAM_BUFFER_MAX]; /* Limit by SPU of Dreamcast */ variable
88 sq_clr(sound_buffer, 65536); in DC_Exit()
103 *actual = VC_WriteBytes(sound_buffer, len); in sound_callback()
106 memset(sound_buffer, 0, len); in sound_callback()
110 return (uint16 *)(sound_buffer); in sound_callback()
/dports/emulators/teo/teo/src/alleg/
H A Dasound.c59 static unsigned char *sound_buffer; variable
87 memset (&sound_buffer[last_index], last_data, index-last_index); in PutSoundByte()
145 memset (&sound_buffer[last_index], last_data, sound_buffer_size-last_index); in asound_Play()
152 memcpy(buffer_ptr, sound_buffer, sound_buffer_size); in asound_Play()
166 sound_buffer = malloc(sizeof(unsigned char)*sound_buffer_size); in asound_Init()
/dports/games/sarien/sarien-0.7.0/src/sound/sgi/
H A Dsound_sgi.c24 static SINT16 *sound_buffer = 0; variable
97 sound_buffer = sbuf; in sgi_init_sound()
110 sound_buffer = 0; in sgi_close_sound()
120 if (al_port && sound_buffer) in sgi_dump_buffer()
121 alWriteFrames(al_port, sound_buffer, BUFFER_SIZE); in sgi_dump_buffer()

123