Permalink
Browse files

timidity/sun_a.c (acntl): Fix for message PM_REQ_GETQSIZ, PM_REQ_GETF…

…RAGSIZ.
  • Loading branch information...
1 parent 4fbf971 commit 4e3fac13d5a1f158a15eb955860a83a81f7291ff @ranvis committed Dec 23, 2009
Showing with 9 additions and 2 deletions.
  1. +5 −0 ChangeLog
  2. +4 −2 timidity/sun_a.c
View
@@ -1,3 +1,8 @@
+2009-12-23 Yair K. <cesium2@gmail.com>
+
+ * timidity/sun_a.c (acntl):
+ Fix for message PM_REQ_GETQSIZ, PM_REQ_GETFRAGSIZ.
+
2009-12-19 Kentaro Sato <kentaro@ranvis.com>
* timidity/readmidi.c: Fixed crash when loading long music.
View
@@ -350,13 +350,15 @@ static int acntl(int request, void *arg)
case PM_REQ_GETQSIZ:
if(ioctl(audioctl_fd, AUDIO_GETINFO, &auinfo) < 0)
return -1;
- return auinfo.play.buffer_size;
+ *((int *)arg) = auinfo.play.buffer_size;
+ return 0;
#if defined(__NetBSD__) || defined(__OpenBSD__)
case PM_REQ_GETFRAGSIZ:
if(ioctl(audioctl_fd, AUDIO_GETINFO, &auinfo) < 0)
return -1;
- return auinfo.blocksize;
+ *((int *)arg) = auinfo.blocksize;
+ return 0;
#endif
case PM_REQ_OUTPUT_FINISH:

0 comments on commit 4e3fac1

Please sign in to comment.