Displaying 2 results from an estimated 2 matches for "sndctl_dsp_getospac".
Did you mean:
sndctl_dsp_getospace
2002 Apr 01
0
Half-Life, wine & GeForce2 GO
...the game wine segfaulted in libGL.so (with the 2312 version of the nvidia
drivers), or in ntdll.dll (with the newest version of their drivers - 2802).
I tried running it using software rendering, but I then got an infinite loop
of sound errors (err:wave:wodUpdatePlayedTotal IOCTL can't
'SNDCTL_DSP_GETOSPACE').
I have XFree 4.1.0 installed, witha 2.4.16 kernel and OSS sound drivers. I
made sure that wine uses the nvidia OpenGL libs.
Could anyone help me ?
Thanks in advance.
Laurent Pinchart
2007 Jul 16
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_oss.c
...data;
+ char *frag = malloc(stream->fragsize);
+
+ if (frag == NULL) {
+ g_printerr ("Failed to allocate fragment of size %d\n",
+ stream->fragsize);
+ return FALSE;
+ }
+
+ while (TRUE) {
+ int ret;
+ audio_buf_info spaceinfo;
+
+ ret = ioctl(stream->dsp_fd, SNDCTL_DSP_GETOSPACE, &spaceinfo);
+ if (ret == -1) {
+ g_printerr ("Failed to get output buffer availability\n");
+ free(frag);
+ return FALSE;
+ }
+ g_assert(spaceinfo.fragsize == stream->fragsize);
+
+ if (spaceinfo.fragments == 0)
+ break;
+
+ memset (frag, 0, st...