Giter VIP home page Giter VIP logo

Comments (19)

i-rinat avatar i-rinat commented on August 15, 2024

If you launch Skype from terminal emulator, do you see any error messages?

from apulse.

powerman avatar powerman commented on August 15, 2024

No.

from apulse.

i-rinat avatar i-rinat commented on August 15, 2024

Then I have no idea what it is and how to fix it.

from apulse.

powerman avatar powerman commented on August 15, 2024

Any ideas about how to debug it? Increase debug level, use strace, etc.?

from apulse.

powerman avatar powerman commented on August 15, 2024

Also, I've previously used skype with pulseaudio, and used pavumeter to configure it, so maybe this happens because of some leftovers of pulseaudio configuration?

from apulse.

i-rinat avatar i-rinat commented on August 15, 2024

Any ideas about how to debug it?

Compiling debug version will turn on trace output, for almost every API call will be printed to stdout. (cmake -DCMAKE_BUILD_TYPE=Debug .., then make again.)
I would trace return values from ALSA calls. Now if one of them fails, error is reported. It's still odd that no errors messages was produced.

Then, I would probably add logging to capture path to find out if any data is read from device.

so maybe this happens because of some leftovers of pulseaudio configuration?

No, I don't think so.

from apulse.

powerman avatar powerman commented on August 15, 2024

I've run /usr/bin/i686-pc-linux-gnu-apulse skype >apulse-debug.log 2>&1 (yesterday's dev version, I don't have ~/.asoundrc now), make skype test call, and exit skype. Please check log http://powerman.name/tmp/apulse-debug.log and let me know what I should try next.

from apulse.

lodgerz avatar lodgerz commented on August 15, 2024

try to edit ~/.asoundrc like that:

pcm.usb
{
type hw
card Audigy2
}

pcm.!default
{
type asym
playback.pcm
{
type plug
slave.pcm "dmix"
}
capture.pcm
{
type plug
slave.pcm "usb"
}
}

from apulse.

powerman avatar powerman commented on August 15, 2024

@lodgerz thanks, but it makes no difference, except with your .asoundrc skype was unable to open sound device while mplayer was runnning (without .asoundrc this issue doesn't exists).

from apulse.

lodgerz avatar lodgerz commented on August 15, 2024

show me the output of:
$ cat /proc/asound/cards

from apulse.

powerman avatar powerman commented on August 15, 2024
$ cat /proc/asound/cards
 0 [Audigy2        ]: Audigy2 - SB Audigy 2 ZS [SB0350]
                      SB Audigy 2 ZS [SB0350] (rev.4, serial:0x20021102) at 0xc080, irq 19

from apulse.

lodgerz avatar lodgerz commented on August 15, 2024

try this:
http://pastebin.com/ehT4YNUk
or:
http://pastebin.com/rgJq8TXm

from apulse.

powerman avatar powerman commented on August 15, 2024

With both configs microphone in skype still doesn't work.
With second config I've also tried to run skype while mplayer was running - works ok - and also tried again to use arecord/aplay - microphone in arecord works ok:

$ LANG=C arecord -t wav -r 44100 -f S16_LE 1.wav
Recording WAVE '1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
^CAborted by signal Interrupt...
arecord: pcm_read:2031: read error: Interrupted system call
$ aplay 1.wav 
Playing WAVE '1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono

I've also tried -r 48000 - works ok too. Not sure is this important but by default (without params) arecord use very bad quality (but it also works ok): "Unsigned 8 bit, Rate 8000 Hz, Mono".

from apulse.

powerman avatar powerman commented on August 15, 2024

BTW, looks like there is no difference in running skype or apulse skype because in Gentoo apulse's libs are installed into /usr/lib64/ and /usr/lib32/ and these paths are already in /etc/ld.so.conf.

from apulse.

powerman avatar powerman commented on August 15, 2024

Is there exists small tool similar to arecord but which use pulseaudio, to test microphone+apulse without skype?

from apulse.

i-rinat avatar i-rinat commented on August 15, 2024

Is there exists small tool similar to arecord but which use pulseaudio, to test microphone+apulse without skype?

avconv -f pulse -i default out.wav (or ffmpeg -f pulse -i default out.wav)

but they don't work now. Functions in libpulse-simple.so are not implemented, and if I use libpulse-simple.so from PulseAudio, nothing gets recorded. Didn't investigate that.

from apulse.

i-rinat avatar i-rinat commented on August 15, 2024

@powerman, try code from https://github.com/i-rinat/apulse/tree/dev

from apulse.

powerman avatar powerman commented on August 15, 2024

@i-rinat wow, it works! Thanks!

from apulse.

i-rinat avatar i-rinat commented on August 15, 2024

OK, pushed to master branch.

from apulse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.