[Linux question] Amplify mic input (14)

1 Name: CyB3r h4xX0r g33k 2005-10-13 00:47 ID:qq5cgIj+

I got myself a mic today to chatter on Skype (I wish there was a good opensource alternative), however I seem to have rather shitty soundcard and the strength of the mic input volume is way to low. Is there a way for me to boost it up, without having to buy a new soundcard?

2 Name: CyB3r h4xX0r g33k 2005-10-13 01:04 ID:Heaven

I just noticed the "[HELP] single questions" thread, I will hence forth post my questions there.

3 Name: dmpk2k!hinhT6kz2E 2005-10-13 05:44 ID:Heaven

I take you've tried changing the settings in the mixer?

Also, are you sure your microphone isn't accidentally plugged into line in? Line in expects a lot more power in comparison to mic in.

Skype is windows-only though, isn't it? It's possible to create a device->proggie->virtual device->final proggie chain that can normalize the waveform under *nix.

4 Name: CyB3r h4xX0r g33k 2005-10-13 08:55 ID:Heaven

>>2
Alright.

5 Name: CyB3r h4xX0r g33k 2005-10-13 13:58 ID:qq5cgIj+

>>3

> I take you've tried changing the settings in the mixer?

I've tried looking for fanzy options in kmix, aumix and alsamixer without luck

> Also, are you sure your microphone isn't accidentally plugged into line in? Line in expects a lot more power in comparison to mic in.

Just checked, it's plugged in correctly. Thanks for the tip thou, now I know how to boost my tv-linein sound ;)

> Skype is windows-only though, isn't it?

Nope, skype is also for linux, mac and pocketpc. However it sucks abit since it uses OSS and not ALSA, hogging the sound system for itself.

> It's possible to create a device->proggie->virtual device->final proggie chain that can normalize the waveform under *nix.

That sounds like a solution I'm interested in. Could you point me in the right direction?

>>4
glad you approve!

6 Name: dmpk2k!hinhT6kz2E 2005-10-13 15:29 ID:Heaven

It's been a while since I touched that stuff, so I can only give a general outline:

The process is something like making a named pipe with mkfifo. Use mknod if mkfifo doesn't fit your needs. Then use sox or some other program to process /dev/dsp1 (or wherever the mic is) and write to the named pipe. Make skype read from the named pipe.

7 Name: Redhatter 2005-10-13 23:52 ID:b9jsWlS/

Then watch Skype panic when it tries to perform IOCTLs on the named fifo. ;-) Skype will expect a character device, not a pipe.

What sort of sound card is it? Some of them have options in funny places. e.g. the Yamaha OPL3-SA3 in my old laptop came up with not one but two mixer chips -- the second one bearing all the goodies.

8 Name: dmpk2k!hinhT6kz2E 2005-10-14 01:32 ID:Heaven

Which is why I mentioned mknod.

9 Name: reppie 2005-10-14 02:46 ID:/g4mSQaJ

just use devfs (or whatever linux's equivalent is), instead of creating the devices manually.

Btw, ioctl is truly the worst syscall ever. It should really die.

10 Name: Redhatter 2005-10-14 07:50 ID:b9jsWlS/

>>8 mknod, yes, but then you need to know the major and minor numbers of the device... pain in the arse, and it doesn't allow for a program to sit in the middle and do the amplification.

mkfifo FOO is conceptually equivalent to mknod FOO p. And again, Skype will whine if it tries to set options on the "device" (such as the sample rate and size) -- as these are not valid controls for a pipe.

>>9 Actually devfs has been deprecated as of kernel 2.6.13 in favour of UDEV.

But otherwise, yes, your suggestion is sound. (Excuse the pun, ahhem)

11 Name: dmpk2k!hinhT6kz2E 2005-10-15 02:11 ID:Heaven

I'm actually a bit curious about the whole idea behind devfs/udev. I thought those only create devices for the kernel. Can user-space programs use them to create virtual devices?

12 Name: CyB3r h4xX0r g33k 2005-10-15 18:32 ID:88TCLUfv

If everything is ok use ALSAMIXER and change to mic , move it all the way up and press enter , then the mic boost will come and move it all the way up to.
BTW:oss in skype , that may explain why i don't have sound in skype i hear but the mic is silent.
PS:I don't have oss , that old shit sucks.

13 Name: Redhatter 2005-10-16 04:28 ID:b9jsWlS/

Use OSS emulation.

modprobe snd-pcm-oss

should fix that real quick. ;-)

And make sure no other apps (such as esd and artsd) are using the soundcard.

14 Name: >>1 2005-11-01 15:19 ID:Heaven

>>12
Woah, best solution ever. Simple solution ftw ;)

I should have noticed it before orz

Thanks for all the suggestions!

This thread has been closed. You cannot post in this thread any longer.