LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 06-02-2005, 04:29 AM   #1
branens
LQ Newbie
 
Registered: Dec 2004
Distribution: fedora red hat
Posts: 10

Rep: Reputation: 0
Could not open sound device Pwlib OPenh323 ohphone problem


I have a problem when I try to run ohphone
I get this message

root is calling host 192.168.5.229
Command ? Could not open sound device - Check permissions or full duplex capabi lity.
Cannot create video input device for name /dev/video0
Available video device names are :
Cannot create FakeVideo input device
Call with "blaza 43t3" established.

My gnomemeeting which came with fedora is working just fine audio and video
I am running on fedora3 2.6.9 core
My build options are
PWLIB ./configure --disable-openldap --disable-openssl --disable-sdl --disable-sasl --disable-expat --enable-plugins --enable-alsa
OPENH323 ./configure --enable-rfc2190avcodec=/root/ffmpeg/libavcodec

Last edited by branens; 06-03-2005 at 07:39 AM.
 
Old 06-15-2005, 12:32 PM   #2
branens
LQ Newbie
 
Registered: Dec 2004
Distribution: fedora red hat
Posts: 10

Original Poster
Rep: Reputation: 0
I solwed the problem

branens@neobee.net
 
Old 06-20-2005, 05:50 AM   #3
branens
LQ Newbie
 
Registered: Dec 2004
Distribution: fedora red hat
Posts: 10

Original Poster
Rep: Reputation: 0
I solved the problem using oss alternative is alsa I didn't use alsa

First I noticed that pwlib didn't build oss plug in there was no sound_oss.o in /root/pwlib/lib/obj_linux_x86_r

My options were for pwlib ./configure --disable-openldap --disable-openssl --disable-sasl --disable-expat --disable-alsa

so I checked the make file in pwlib\plugins And manually altered the file putting ones for oss pwlib and v4l Make file is below

pwlib\plugins makefile

HAS_ALSA = 1

ifeq (1,$(HAS_ALSA))
SUBDIRS += sound_alsa
ifeq (,$(DEFAULT_SOUND))
DEFAULT_SOUND = sound_alsa
endif
endif

HAS_OSS = 1

ifeq (1,$(HAS_OSS))
SUBDIRS += sound_oss
ifeq (,$(DEFAULT_SOUND))
DEFAULT_SOUND = sound_oss
endif
endif

HAS_V4L = 1

ifeq (1,$(HAS_V4L))
SUBDIRS += vidinput_v4l
ifeq (,$(DEFAULT_VIDINPUT))
DEFAULT_VIDINPUT = vidinput_v4l
endif
endif

I bulild pwlib again

Then I made folowing changes in the code ohphone\main.cxx

add this line in the top of main.cxx

#include "/root/pwlib/plugins/sound_oss/sound_oss.h"

and my openaudiochannell looks like this

BOOL MyH323EndPoint::OpenAudioChannel(H323Connection & connection,
BOOL isEncoding,
unsigned bufferSize,
H323AudioCodec & codec)
{

if (isEncoding) {
PSoundChannel* soundChannel = new PSoundChannelOSS("/dev/dsp",isEncoding ? PSoundChannel::Recorder : PSoundChannel::Player,
1, 8000, 16);
codec.AttachChannel(soundChannel);
}

else {
PSoundChannel* soundChannel = new PSoundChannelOSS("/dev/dsp",isEncoding ? PSoundChannel::Recorder : PSoundChannel::Player,
1, 8000, 16);
codec.AttachChannel(soundChannel);
}




codec.SetSilenceDetectionMode(currentCallOptions.noSilenceSuppression ?
H323AudioCodec::NoSilenceDetection :
H323AudioCodec::AdaptiveSilenceDetection);

return TRUE;
}



After this changes sound worked ok

I hope this helps

All the best Brane from Novi SAD
 
Old 11-22-2009, 11:42 AM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 51
Quote:
Originally Posted by branens View Post
I solved the problem using oss alternative is alsa I didn't use alsa

First I noticed that pwlib didn't build oss plug in there was no sound_oss.o in /root/pwlib/lib/obj_linux_x86_r

My options were for pwlib ./configure --disable-openldap --disable-openssl --disable-sasl --disable-expat --disable-alsa

so I checked the make file in pwlib\plugins And manually altered the file putting ones for oss pwlib and v4l Make file is below

pwlib\plugins makefile

HAS_ALSA = 1

ifeq (1,$(HAS_ALSA))
SUBDIRS += sound_alsa
ifeq (,$(DEFAULT_SOUND))
DEFAULT_SOUND = sound_alsa
endif
endif

HAS_OSS = 1

ifeq (1,$(HAS_OSS))
SUBDIRS += sound_oss
ifeq (,$(DEFAULT_SOUND))
DEFAULT_SOUND = sound_oss
endif
endif

HAS_V4L = 1

ifeq (1,$(HAS_V4L))
SUBDIRS += vidinput_v4l
ifeq (,$(DEFAULT_VIDINPUT))
DEFAULT_VIDINPUT = vidinput_v4l
endif
endif

I bulild pwlib again

Then I made folowing changes in the code ohphone\main.cxx

add this line in the top of main.cxx

#include "/root/pwlib/plugins/sound_oss/sound_oss.h"

and my openaudiochannell looks like this

BOOL MyH323EndPoint::OpenAudioChannel(H323Connection & connection,
BOOL isEncoding,
unsigned bufferSize,
H323AudioCodec & codec)
{

if (isEncoding) {
PSoundChannel* soundChannel = new PSoundChannelOSS("/dev/dsp",isEncoding ? PSoundChannel::Recorder : PSoundChannel::Player,
1, 8000, 16);
codec.AttachChannel(soundChannel);
}

else {
PSoundChannel* soundChannel = new PSoundChannelOSS("/dev/dsp",isEncoding ? PSoundChannel::Recorder : PSoundChannel::Player,
1, 8000, 16);
codec.AttachChannel(soundChannel);
}




codec.SetSilenceDetectionMode(currentCallOptions.noSilenceSuppression ?
H323AudioCodec::NoSilenceDetection :
H323AudioCodec::AdaptiveSilenceDetection);

return TRUE;
}



After this changes sound worked ok

I hope this helps

All the best Brane from Novi SAD
HI, sorry for re-opening it, but the issue is still there.
I have similar troubles. Please could you give a check there:
http://ubuntuforums.org/showthread.php?t=1334076

you are the king of Ohphone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mplayer sound error: "Could not open/initialize audio device -> no sound" GTBlackwell Linux - Software 9 06-11-2008 03:23 PM
Any ohphone Users Out There? Need Help Specifying Video Device mac57 Mandriva 6 03-26-2006 06:32 AM
open /dev/[sound/]dsp: Device or resource busy tearinox Linux - Newbie 1 10-24-2003 07:47 PM
Kernel Problem -- Cannot open root device jchutcheson Red Hat 3 09-24-2003 10:36 AM
dependency problem installing openh323 to run gnomemeeting wafyellow Linux - Software 5 10-24-2002 01:23 PM


All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration