Bugs item #1620896, was opened at 2006-12-22 09:34
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=591456&aid=1620896&group_id=89802

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ocaml-alsa: Alsa.Unknown_error(16)

Initial Comment:
Hello,

I would like to use ocaml for an audio pet project doing
simultaneous playing and recording of sound.
So I've tested ocaml-alsa/examples/recorder -l, but it
fail with:

[EMAIL PROTECTED]:~/src/ocaml/ocaml-alsa-0.1.0/examples$ ./recorder -l
Fatal error: exception Alsa.Unknown_error(16)

strace:

(snip)
open("/dev/snd/pcmC0D0c", O_RDWR|O_NONBLOCK) = 4
close(3)                                = 0
ioctl(4, AGPIOC_ACQUIRE or APM_IOC_STANDBY, 0xbf921b34) = 0
fcntl64(4, F_GETFL)                     = 0x802 (flags O_RDWR|O_NONBLOCK)
ioctl(4, AGPIOC_INFO, 0xbf921ce0)       = 0
ioctl(4, AGPIOC_RELEASE or APM_IOC_SUSPEND, 0xbf921cd8) = 0
mmap2(NULL, 4096, PROT_READ, MAP_SHARED, 4, 0x80000) = 0xb7f23000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0x81000) = 0xb7f22000
fcntl64(4, F_GETFL)                     = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl64(4, F_SETFL, O_RDWR)             = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4110, 0x8099700)         = 0
ioctl(4, 0xc25c4111, 0x8099700)         = 0
ioctl(4, 0xc0684113, 0xbf921fc4)        = 0
ioctl(4, 0x4140, 0x1)                   = 0
ioctl(4, 0x4140, 0x1)                   = 0
ioctl(4, 0x800c4151, 0xbf922004)        = 0
ioctl(4, 0x4140, 0xb7e9760b)            = -1 EBUSY (Device or resource busy)
write(2, "Fatal error: exception Alsa.Unkn"..., 46Fatal error: exception 
Alsa.Unknown_error(16)
) = 46
exit_group(2)                           = ?
Process 13076 detached




----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2006-12-22 10:16

Message:
Logged In: NO 

About my setup: latest Debian i386 sid
ii  alsa-base                        1.0.13-2                        ALSA
driver configuration files
ii  alsa-tools                       1.0.13-1                       
Console based ALSA utilities for specific hardware
ii  alsa-utils                       1.0.13-1                        ALSA
utilities

ii  ocaml                            3.09.2-7                        ML
language implementation with a class-based object sy
ii  ocaml-base                       3.09.2-7                       
Runtime system for ocaml bytecode executables

Linux leeloo 2.6.18.2 #1 PREEMPT Sat Nov 18 23:56:34 CET 2006 i686
GNU/Linux

[EMAIL PROTECTED]:~/src/ocaml/wav-0.8$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 0: CMI8738-MC6
[C-Media PCI DAC/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 1: CMI8738-MC6
[C-Media PCI 2nd DAC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 2: CMI8738-MC6
[C-Media PCI IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=591456&aid=1620896&group_id=89802

Répondre à