Unable to open the device capture ???

View: New views
11 Messages — Rating Filter:   Alert me  

Unable to open the device capture ???

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Dear list

I'am using Openal to record  Sound.

I am using  a usb  Microphone to capture sound (PHILIPS SpeechMike)  

I have an error message indicating that the initialization of the capture
is impossible.

It is at the methode  "alcCaptureOpenDevice" ==> Unable to open the device
capture

It is noteworthy that the name of the device is passed as parameter  after
extraction devices contained in the returned string

of methode alcGetString.

Please help me and thanks in advance.

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Unable to open the device capture ???

by Jason Daly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

wassim_belhadj wrote:

> Dear list
>
> I'am using Openal to record  Sound.
>
> I am using  a usb  Microphone to capture sound (PHILIPS SpeechMike)
>
> I have an error message indicating that the initialization of the capture
> is impossible.
>
> It is at the methode  "alcCaptureOpenDevice" ==> Unable to open the device
> capture
>
> It is noteworthy that the name of the device is passed as parameter  after
> extraction devices contained in the returned string
>
> of methode alcGetString.
>
> Please help me and thanks in advance.
>  

What implementation are you using, and what platform?

What happens if you just pass NULL for the device to alcCaptureOpenDevice?

If you're using the OpenAL-Sample implementation, it suffers from a bug
that requires you to open a playback device (using alcOpenDevice) before
you can open a capture device.

--"J"

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Unable to open the device capture ???

by Jason Daly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jason Daly wrote:
> If you're using the OpenAL-Sample implementation, it suffers from a bug
> that requires you to open a playback device (using alcOpenDevice) before
> you can open a capture device.
>  

I should also mention that if you are using the OpenAL-Sample
implementation, you should switch to OpenAL-Soft instead.  It doesn't
suffer from this bug (and also fixes many other issues).

--"J"

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Unable to open the device capture ???

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I am  using  OpenAl 1.1 and a windows platform.

When I pass NULL et alcCaptureOpenDevice methode the function returns NULL.



In fact I noticed that when i put in the properties of Sound and Peripheral
my digital dictaphone as the unit for audio playback and recording at the
same time i have  an error message  when  i try to record sound :

                        methode  "alcCaptureOpenDevice" ==> "Unable to open
the device capture"

But playing sound works perfect.

This error does not occur when  I put as  audio playback my audio sound
card and my digital dictaphone as unit for recording.
 

My  digital dictaphone contains a unit  for audio playback and a
michrophone for recording here is his image
( http://www.creative-tn.com/store/images/proplus.jpg ) . I want to use it
for audio playback and recording  sounds.

How to solve please this problem?
Is it a  OpenAl bug?

Tahnks
 


On Mon, 16 Jun 2008 11:21:25 -0400, Jason Daly <jdaly@...> wrote:

> wassim_belhadj wrote:
>> Dear list
>>
>> I'am using Openal to record  Sound.
>>
>> I am using  a usb  Microphone to capture sound (PHILIPS SpeechMike)
>>
>> I have an error message indicating that the initialization of the
> capture
>> is impossible.
>>
>> It is at the methode  "alcCaptureOpenDevice" ==> Unable to open the
> device
>> capture
>>
>> It is noteworthy that the name of the device is passed as parameter
> after
>> extraction devices contained in the returned string
>>
>> of methode alcGetString.
>>
>> Please help me and thanks in advance.
>>
>
> What implementation are you using, and what platform?
>
> What happens if you just pass NULL for the device to
alcCaptureOpenDevice?
>
> If you're using the OpenAL-Sample implementation, it suffers from a bug
> that requires you to open a playback device (using alcOpenDevice) before
> you can open a capture device.
>
> --"J"

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Unable to open the device capture ???

by Jason Daly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

wassim_belhadj wrote:
> I am  using  OpenAl 1.1 and a windows platform.
>  

It sounds like you're using the Creative OpenAL SDK, then, is that correct?

If so, I wonder if your device supports multimedia capture through the
regular Windows MMSYSTEM or DirectSound methods.  Based on the symptoms,
it sounds like it doesn't, but you mentioned that you can select it as
your recording device in the sound Control Panel, correct?

Unfortunately, I'm not sure how much more help I can be.  I don't have
any experience with any devices like that.  Maybe someone else can chime in?

--"J"
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Unable to open the device capture ???

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I noticed that the sound card that I use does not make to record sound
when the device(sound card) is open.
Indeed, alcCaptureOpenDevice me always returns NULL when the device is
opened.
To run the capture I always have to close the device before starting the
capture and then reopen again to play the sound like this:

/**********************************************************/
ALCcontext* ptrCntxt = alcGetCurrentContext();
ALCdevice* ptrDvc = alcGetContextsDevice(ptrCntxt);
alcMakeContextCurrent(NULL);
alcDestroyContext(ptrCntxt);
alcCloseDevice(ptrDvc);

CptrDvc=alcCaptureOpenDevice(ptrucDvcNm, 44100, AL_FORMAT_MONO16, 44100);
/......................../
alcCaptureStop(CptrDvc);

//reopen again  the device

Dvc = alcOpenDevice(NULL);
ALCcontext* ptrCntxt = alcCreateContext(Dvc, NULL);
alcMakeContextCurrent(ptrCntxt);
/**********************************************************************************************/

The problem is that sometimes the capture fails because the device is open
(I do not know how ????) Maybe it was opened twice

Are there any way to close all open device?

Are there any way to circumvent what I do ...

Help me please








_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re[2]: Unable to open the device capture ???

by Peter Mulholland-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello wassim_belhadj,

Saturday, June 21, 2008, 2:26:48 PM, you wrote:


> I noticed that the sound card that I use does not make to record sound
> when the device(sound card) is open.
> Indeed, alcCaptureOpenDevice me always returns NULL when the device is
> opened.
> To run the capture I always have to close the device before starting the
> capture and then reopen again to play the sound like this:
<snip>

This suggests that OpenAL isn't properly enumerating multiple input devices.

>From what I can tell, there is also no way to enumerate available devices - a serious oversight in OpenAL!!

--
Best regards,
 Peter                            mailto:darkmatter@...


_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Unable to open the device capture ???

by Jason Daly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter Mulholland wrote:
Hello wassim_belhadj,

Saturday, June 21, 2008, 2:26:48 PM, you wrote:


  
I noticed that the sound card that I use does not make to record sound
when the device(sound card) is open.
Indeed, alcCaptureOpenDevice me always returns NULL when the device is
opened.
To run the capture I always have to close the device before starting the
capture and then reopen again to play the sound like this:
    
<snip>

This suggests that OpenAL isn't properly enumerating multiple input devices.

>From what I can tell, there is also no way to enumerate available devices - a serious oversight in OpenAL!!
  

You can enumerate devices on any OpenAL 1.1 implementation using this:

ALCchar *deviceList;

deviceList = alcGetString(NULL, ALC_DEVICE_SPECIFIER);

On Windows, this will return a NULL-delimited (double-NULL terminated) list of all native OpenAL devices, as well as "Generic Software" and "Generic Hardware", which map to the preferred devices as configured in the Control Panel.  Windows Vista will skip Generic Hardware (DirectSound3D is no longer supported on Vista.

If you're using the latest Creative SDK and runtime (or OpenAL-Soft, I believe), you can enumerate all devices, which gives you choices like "Generic Software on <device>".  You can do this with the following query:

deviceList = alcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);

You should check to see if the implementation supports the ALC_ENUMERATE_ALL_EXT extension before making this query.

--"J"


_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Parent Message unknown Re: Unable to open the device capture ???

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Is Openal support Multiple Input Device ?

If yes why the alcCaptureOpenDevice return NULL when the Device is Open ?
In fact  i init Openal and when i  try to record alcCaptureOpenDevice
returns NULL. !!!

I must close the device and reopen it  to record sound but sometimes i have
error  "Unable toopen the device capture" that's why i asked for
a mean to to force closing all devices.So when I do record  I am sure that


I use a usb Microphone  as unit for audio playback and recording. ==>
http://www.creative-tn.com/store/images/proplus.jpg


On Mon, 23 Jun 2008 11:45:52 -0400, Jason Daly <jdaly@...> wrote:

> Peter Mulholland wrote:
>> Hello wassim_belhadj,
>>
>> Saturday, June 21, 2008, 2:26:48 PM, you wrote:
>>
>>
>>
>>> I noticed that the sound card that I use does not make to record sound
>>> when the device(sound card) is open.
>>> Indeed, alcCaptureOpenDevice me always returns NULL when the device is
>>> opened.
>>> To run the capture I always have to close the device before starting
> the
>>> capture and then reopen again to play the sound like this:
>>>
>> <snip>
>>
>> This suggests that OpenAL isn't properly enumerating multiple input
> devices.
>>
>> >From what I can tell, there is also no way to enumerate available
> devices - a serious oversight in OpenAL!!
>>
>
> You can enumerate devices on any OpenAL 1.1 implementation using this:
>
> ALCchar *deviceList;
>
> deviceList = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
>
> On Windows, this will return a NULL-delimited (double-NULL terminated)
> list of all native OpenAL devices, as well as "Generic Software" and
> "Generic Hardware", which map to the preferred devices as configured in
> the Control Panel.  Windows Vista will skip Generic Hardware
> (DirectSound3D is no longer supported on Vista.
>
> If you're using the latest Creative SDK and runtime (or OpenAL-Soft, I
> believe), you can enumerate all devices, which gives you choices like
> "Generic Software on <device>".  You can do this with the following
query:
>
> deviceList = alcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
>
> You should check to see if the implementation supports the
> ALC_ENUMERATE_ALL_EXT extension before making this query.
>
> --"J"

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Unable to open the device capture ???

by Jason Daly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

wassim_belhadj wrote:
> Is Openal support Multiple Input Device ?
>
> If yes why the alcCaptureOpenDevice return NULL when the Device is Open ?
> In fact  i init Openal and when i  try to record alcCaptureOpenDevice
> returns NULL. !!!
>  

OpenAL is specified to support multiple devices.  The actual level of
support will depend on the particular implementation that you're using.  
I asked you before whether or not you're using the Creative SDK, but you
didn't answer.  If you are using the Creative SDK, perhaps you could try
switching to the OpenAL-Soft implementation and see if that works any
better for you:

http//kcat.strangesoft.net/openal.html

If it does, that might tell us something.

--"J"

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Unable to open the device capture ???

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thank you very much for your help

I'am using OpenAl windows SDK
wrap_oal.dll ==> 2.1.8.1
OpenAL32.dll ==> 6.14.357.22

I tested OpenAL-Soft but I always have the same problem

  ==> When i  try to record alcCaptureOpenDevice  returns NULL. !!!
  ==> One solution I have been found consist to close the device when I
want to launch capture
      and reopen it after stop recording (To can playBack sound ) but
sometimes i have error  "Unable to open the  device capture" although I
already closed device...

I would remind you that I use a usb Dictaphone to record and playback sound
(http://www.creative-tn.com/store/images/proplus.jpg)

NB:When i test my  usb Dictaphone from the properties of Sound and
Peripheral  I have got a message indicating that it's not support
recording and playback simultaneously.

I hope to find help on you because here I am blocked...

Thanks

> OpenAL is specified to support multiple devices.  The actual level of
> support will depend on the particular implementation that you're using.
> I asked you before whether or not you're using the Creative SDK, but you
> didn't answer.  If you are using the Creative SDK, perhaps you could try
> switching to the OpenAL-Soft implementation and see if that works any
> better for you:
>
> http//kcat.strangesoft.net/openal.html
>
> If it does, that might tell us something.
>
> --"J"

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal
LightInTheBox - Buy quality products at wholesale price