Home
last modified time | relevance | path

Searched refs:sound_fd (Results 1 – 22 of 22) sorted by relevance

/dports/emulators/darcnes/darcnes/
H A Dsnd_unix.c42 int sound_fd; variable
48 if (sound_fd) { in snd_output_4_waves()
72 sound_fd = 0; in snd_init()
88 sound_fd = 0; in snd_open()
125 close(sound_fd); in snd_open()
126 sound_fd = 0; in snd_open()
150 sound_fd = 0; in snd_open()
162 sound_fd = 0; in snd_open()
174 sound_fd = 0; in snd_open()
186 sound_fd = 0; in snd_open()
[all …]
/dports/emulators/uae/uae-0.8.29/src/sd-uss/
H A Dsound.c34 static int sound_fd; variable
68 close (sound_fd); in close_sound()
80 sound_fd = open ("/dev/dsp", O_WRONLY); in setup_sound()
84 if (sound_fd < 0) { in setup_sound()
96 close (sound_fd); in setup_sound()
101 close (sound_fd); in setup_sound()
113 sound_fd = open ("/dev/dsp", O_WRONLY); in open_sound()
114 have_sound = !(sound_fd < 0); in open_sound()
140 ioctl (sound_fd, SNDCTL_DSP_STEREO, &tmp); in open_sound()
143 ioctl (sound_fd, SNDCTL_DSP_SPEED, &rate); in open_sound()
[all …]
/dports/x11-wm/e16/e16-1.0.24/src/
H A Dsound_esound.c41 static int sound_fd = -1; variable
49 if (sound_fd < 0) in _sound_esound_Load()
101 if (s->id && sound_fd >= 0) in _sound_esound_Destroy()
106 esd_sample_free(sound_fd, s->id); in _sound_esound_Destroy()
115 if (sound_fd < 0) in _sound_esound_Play()
125 if (sound_fd >= 0) in _sound_esound_Init()
128 sound_fd = esd_open_sound(NULL); in _sound_esound_Init()
130 return sound_fd < 0; in _sound_esound_Init()
136 if (sound_fd < 0) in _sound_esound_Exit()
139 close(sound_fd); in _sound_esound_Exit()
[all …]
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/sd-uss/
H A Dsound.c29 int sound_fd; variable
51 close (sound_fd); in close_sound()
75 sound_fd = open ("/dev/dsp", O_WRONLY); in setup_sound()
79 if (sound_fd < 0) { in setup_sound()
91 close (sound_fd); in setup_sound()
96 close (sound_fd); in setup_sound()
111 sound_fd = open ("/dev/dsp", O_WRONLY); in init_sound()
112 have_sound = !(sound_fd < 0); in init_sound()
121 close (sound_fd); in init_sound()
135 ioctl (sound_fd, SNDCTL_DSP_STEREO, &tmp); in init_sound()
[all …]
H A Dsound.h11 extern int sound_fd;
67 write (sound_fd, paula_sndbuffer, size); in check_sound_buffers()
/dports/emulators/uae/uae-0.8.29/src/sd-file/
H A Dsound.c22 int sound_fd; variable
55 lseek (sound_fd, 40, SEEK_SET); in close_sound()
56 write (sound_fd, buf, 4); in close_sound()
63 lseek (sound_fd, 4, SEEK_SET); in close_sound()
64 write (sound_fd, buf, 4); in close_sound()
66 close(sound_fd); in close_sound()
71 sound_fd = open ("sound.output", O_CREAT|O_TRUNC|O_WRONLY, 0666); in setup_sound()
72 have_sound = !(sound_fd < 0); in setup_sound()
117 write (sound_fd, buf, 44); in init_sound()
H A Dsound.h9 extern int sound_fd;
19 write (sound_fd, sndbuffer, sndbufsize); in check_sound_buffers()
/dports/x11/xlockmore/xlockmore-5.67/xlock/
H A Dsound.c197 static int sound_fd = -1; variable
367 if ((sound_fd < 0) || (!s)) in sound_esd_play()
371 if (sound_fd >= 0) in sound_esd_play()
391 esd_sample_play(sound_fd, s->id); in sound_esd_play()
402 if ((s->id) && (sound_fd >= 0)) in sound_esd_destroy_sample()
403 esd_sample_free(sound_fd, s->id); in sound_esd_destroy_sample()
419 if (sound_fd != -1) in sound_esd_init()
423 sound_fd = fd; in sound_esd_init()
438 if (sound_fd >= 0) in sound_esd_shutdown()
449 close(sound_fd); in sound_esd_shutdown()
[all …]
/dports/x11-wm/vtwm/vtwm-5.5.0/
H A Dsound.c139 static int sound_fd = -1; variable
194 if (sound_fd < 0) in RPlayOpenSound()
206 return (sound_fd); in RPlayOpenSound()
219 if (sound_fd >= 0) in RPlayCloseSound()
220 rplay_close(sound_fd); in RPlayCloseSound()
240 rplay(sound_fd, rp); in RPlayPlaySoundAdhoc()
264 return(sound_fd); in ESDOpenSound()
272 close(sound_fd); in ESDCloseSound()
281 if (sound_fd == -1) in ESDSendFileData()
303 esd_sample_play(sound_fd, id); in ESDPlaySound()
[all …]
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/sd-solaris/
H A Dsound.c40 int sound_fd; variable
53 close (sound_fd); in close_sound()
58 sound_fd = open ("/dev/audio", O_WRONLY); in setup_sound()
59 have_sound = !(sound_fd < 0); in setup_sound()
79 if (ioctl (sound_fd, AUDIO_SETINFO, &sfd_info)) { in init_sound()
H A Dsound.h14 extern int sound_fd;
19 write (sound_fd, paula_sndbuffer, paula_sndbufsize); in flush_sound_buffer()
/dports/emulators/uae/uae-0.8.29/src/sd-solaris/
H A Dsound.c39 int sound_fd; variable
47 close(sound_fd); in close_sound()
52 sound_fd = open ("/dev/audio", O_WRONLY); in setup_sound()
53 have_sound = !(sound_fd < 0); in setup_sound()
79 if (ioctl(sound_fd, AUDIO_SETINFO, &sfd_info)) { in init_sound()
H A Dsound.h11 extern int sound_fd;
16 write (sound_fd, sndbuffer, sndbufsize); in flush_sound_buffer()
/dports/x11-wm/ctwm/ctwm-4.0.3/
H A Dsound.c23 static int sound_fd = 0; variable
91 if(sound_fd != 0) { in sound_init()
102 if((sound_fd = rplay_open(hostname)) < 0) { in sound_init()
246 if(rplay(sound_fd, rp[snd]) < 0) { in play_sound()
301 if(sound_fd != 0) { in set_sound_host()
302 rplay_close(sound_fd); in set_sound_host()
304 sound_fd = 0; in set_sound_host()
/dports/multimedia/xawtv/xawtv-3.107/console/
H A Drecord.c44 static int sound_fd; variable
59 if (-1 == (sound_fd = open(audio_dev, O_RDONLY))) { in sound_open()
70 if (-1 == ioctl(sound_fd, SNDCTL_DSP_SETFMT, &afmt)) { in sound_open()
92 if (-1 == ioctl(sound_fd, SNDCTL_DSP_SPEED, &srate)) { in sound_open()
122 ioctl(sound_fd,SNDCTL_DSP_SETTRIGGER,&trigger); in sound_open()
124 ioctl(sound_fd,SNDCTL_DSP_SETTRIGGER,&trigger); in sound_open()
126 return sound_fd; in sound_open()
138 rc = read(sound_fd,sound_buffer+have,sound_blksize-have); in sound_read()
675 FD_SET(sound_fd,&s); in main()
676 if (-1 == select(sound_fd+1,&s,NULL,NULL,NULL)) { in main()
[all …]
/dports/net/ortp/ortp-1.0.2-0/src/tests/
H A Drtprecv.c88 int sound_fd=0; in main() local
139 sound_fd=sound_init(format); in main()
167 if (sound_fd>0){ in main()
168 ret = write(sound_fd,buffer,err); in main()
/dports/games/libretro-snes9x/snes9x-73aa348/unix/
H A Dunix.cpp115 int sound_fd; member
1291 ioctl(so.sound_fd, SNDCTL_DSP_GETOSPACE, &info); in S9xSamplesAvailable()
1318 ioctl(so.sound_fd, SNDCTL_DSP_GETOSPACE, &info); in S9xSamplesAvailable()
1344 result = write(so.sound_fd, in S9xSamplesAvailable()
1361 so.sound_fd = open(sound_device, O_WRONLY | O_NONBLOCK); in S9xOpenSoundDevice()
1362 if (so.sound_fd == -1) in S9xOpenSoundDevice()
1369 if (ioctl(so.sound_fd, SNDCTL_DSP_SETFRAGMENT, &J) == -1) in S9xOpenSoundDevice()
1373 if (ioctl(so.sound_fd, SNDCTL_DSP_SETFMT, &J) == -1 || J != K) in S9xOpenSoundDevice()
1377 if (ioctl(so.sound_fd, SNDCTL_DSP_STEREO, &J) == -1 || J != K) in S9xOpenSoundDevice()
1381 if (ioctl(so.sound_fd, SNDCTL_DSP_SPEED, &J) == -1 || J != K) in S9xOpenSoundDevice()
[all …]
/dports/emulators/snes9x-gtk/snes9x-1.54.1/unix/
H A Dunix.cpp290 int sound_fd; member
1481 so.sound_fd = open(sound_device, O_WRONLY | O_NONBLOCK); in S9xOpenSoundDevice()
1482 if (so.sound_fd == -1) in S9xOpenSoundDevice()
1489 if (ioctl(so.sound_fd, SNDCTL_DSP_SETFRAGMENT, &J) == -1) in S9xOpenSoundDevice()
1493 if (ioctl(so.sound_fd, SNDCTL_DSP_SETFMT, &J) == -1 || J != K) in S9xOpenSoundDevice()
1497 if (ioctl(so.sound_fd, SNDCTL_DSP_STEREO, &J) == -1 || J != K) in S9xOpenSoundDevice()
1501 if (ioctl(so.sound_fd, SNDCTL_DSP_SPEED, &J) == -1 || J != K) in S9xOpenSoundDevice()
1505 if (ioctl(so.sound_fd, SNDCTL_DSP_GETBLKSIZE, &J) == -1) in S9xOpenSoundDevice()
1523 …if (!unixSettings.ThreadSound && (ioctl(so.sound_fd, SNDCTL_DSP_GETOSPACE, &info) == -1 || info.by… in S9xProcessSound()
1575 I = write(so.sound_fd, (char *) Buf + byte_offset, I); in S9xProcessSound()
/dports/emulators/uae/uae-0.8.29/src/od-dos/sound/
H A Dsound.h9 extern int sound_fd;
/dports/emulators/uae/uae-0.8.29/src/sd-sdl/
H A Dsound.h9 extern int sound_fd;
H A Dsound.c22 int sound_fd; variable
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/sd-alsa/
H A Dsound.h15 extern int sound_fd;