LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-30-2007, 05:42 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
gtick sharing the sound card with other apps


Hi,
Whenever any application that uses sound (be it amarok or youtube website) is running, gtick (metronome) is not able to produce any sound (I got the following error: '/dev/dsp is busy'). I need to turn off anything using sound and then gtick will work properly.
I assume it's not the soundcard fault (it's audiophile 2496 and it doesn't have any problems with other music apps running simultaneously). It'll be a gtick problem.
I don't know, can I change something in gtick?
thanks

EDIT: the only place in gtick preferences that may matter is:
Quote:
sound device: /dev/dsp
and that's it

Last edited by sycamorex; 09-30-2007 at 05:45 AM.
 
Old 09-30-2007, 03:02 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi sycamorex, Lets see if the OSSEmulation modules are loaded. Please post the output from the following.
Code:
/sbin/lsmod | grep snd
We are looking for these modules, snd-pcm-oss, snd-mixer-oss, snd-seq-oss. If they are loaded have a look here for some help.

http://alsa.opensrc.org/index.php/Aoss

The gtick page suggests that oss compatibility is needed for this to work.
Good luck. ;-)
 
Old 10-01-2007, 02:20 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Thanks for your reply,

alsa docs say that there are 2 ways of emulating oss
1. by loading snd-pcm-oss, snd-mixer-oss, and snd-seq-oss modules into the kernel:

Quote:
sycamorex@linux-tree:~$ lsmod | grep snd
snd_ice1712 57332 1
snd_ice17xx_ak4xxx 4000 1 snd_ice1712
snd_ak4xxx_adda 7520 2 snd_ice1712,snd_ice17xx_ak4xxx
snd_cs8427 8512 1 snd_ice1712
snd_ac97_codec 93220 1 snd_ice1712
snd_pcm_oss 39744 0
snd_mixer_oss 15936 1 snd_pcm_oss
snd_pcm 72644 3 snd_ice1712,snd_ac97_codec,snd_pcm_oss
snd_page_alloc 9544 1 snd_pcm
ac97_bus 2272 1 snd_ac97_codec
snd_i2c 5312 2 snd_ice1712,snd_cs8427
snd_mpu401_uart 8224 1 snd_ice1712
snd_seq_oss 31200 0
snd_seq_midi 8160 0
snd_seq_midi_event 6880 2 snd_seq_oss,snd_seq_midi
snd_seq 47056 5 snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 21156 2 snd_pcm,snd_seq
snd_rawmidi 22784 2 snd_mpu401_uart,snd_seq_midi
snd_seq_device 7980 4 snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi
snd 49508 16 snd_ice1712,snd_ak4xxx_adda,snd_cs8427,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_i2c,snd_ mpu401_uart,snd_seq_oss,snd_seq,snd_timer,snd_rawmidi,snd_seq_device
soundcore 7520 1 snd
it seems that they are loaded, but as I mentioned before it doesn't work

2. The second method is by using the aoss script
$ aoss gtick
After starting up gtick this way, when I want the metronome to start 'ticking', only the first 'tick' is audible.
Then it keeps working but there's silence coming from gtick.

On the official gtick website they say that deb and rpm packages may be slightly out of date, so I removed gtick and tried to install it from source, however I got the following error:

Quote:
checking for strtol... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... configure: error: Package requirements (gtk+-2.0 gthread-2.0) were not met:

No package 'gtk+-2.0' found
No package 'gthread-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I've got libgtk2.0-0
Also, when I tried to echo $PKG_CONFIG_PATH, it seems that it's empty.

Any suggestions will be appreciated

thanks
 
Old 10-01-2007, 06:18 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Try this
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
Good luck. ;-)

Last edited by Peacedog; 10-01-2007 at 06:23 PM.
 
Old 10-02-2007, 07:48 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Thanks for your reply, however I googled the 2 missing packages and what turned out was that I needed:

1.libglib2.0-dev to get gthread package
2.libgtk2.0-dev

All the dependencies have been satisfied, and I managed to install it without problems.
But the problem with this version of gtick is exactly the same. I can't use gtick and any
other application using sound simultaneously If I run gtick, I can't play any song ('device is busy' - I tried amarok, mplayer, xine, xmms). When I run any of those applications, in turn, I can't produce any sound from gtick.
thanks for any suggestions
 
Old 10-02-2007, 09:45 AM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I've googled up some references to the envy24control Mixer. That may give you more control over the card. You may also want to look into Dmix.
Good luck. ;-)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound sharing by several apps tkalfaoglu Linux - Software 2 07-30-2007 09:30 PM
sound card sharing joanlinux Linux - Networking 3 05-22-2007 11:51 AM
[BIOS] IRQ sharing conflict: network vs sound card marsm Linux - Hardware 11 06-28-2006 06:32 PM
mixing sound apps = blocked card bobbens Linux - Software 2 01-27-2005 02:06 PM
2 Questions: Network File Sharing and Sound Card a6w6h6g Linux - Newbie 1 04-16-2004 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:48 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
Open Source Consulting | Domain Registration