Skip to content

malformed (wrongly scaled?) waveform with input_alsa #4

Closed

Description

@rigid

in all waveform-displaying actors, the signal seems very low as if it was scaled wrong with input_alsa (input_debug works)

Activity

  1. kaixiong commented on Apr 11, 2012

    @kaixiong
    Member

    Did you compare this with PulseAudio input? The DFT is a linear transform, so DFT-based visualizations should also exhibit the same problem if input waveforms are incorrectly scaled.

  2. rigid commented on Apr 11, 2012

    @rigid
    MemberAuthor

    Chong Kai Xiong reply@reply.github.com schrieb:

    Did you compare this with PulseAudio input? The DFT is a linear
    transform, so DFT-based visualizations should also exhibit the same
    problem if input waveforms are incorrectly scaled.


    Reply to this email directly or view it on GitHub:
    #4 (comment)

    no, only input_alsa and input_debug work.

  3. kaixiong commented on Apr 11, 2012

    @kaixiong
    Member

    PulseAudio works for me, but I have to use pavucontrol to be able to redirect and capture output audio streams.

  4. rigid commented on Apr 23, 2012

    @rigid
    MemberAuthor

    it seems input_alsa needs a complete facelift and VisParam support selection of different hardwares. https://github.com/mumble-voip/mumble/blob/master/src/mumble/ALSAAudio.cpp could serve as example, it looks quite clean.

  5. kaixiong commented on Apr 24, 2012

    @kaixiong
    Member

    I really can't see anything wrong with the input signal from ALSA. If there is any incorrect scaling, it has to be elsewhere in lv_audio.c where the samples are converted.

    If you're using lv_scope to check the waveforms, be aware that peak amplitudes will show up at 1/4 and 3/4 of the display height. They will not reach the top or bottom of the display.

  6. rigid commented on Apr 24, 2012

    @rigid
    MemberAuthor

    Chong Kai Xiong reply@reply.github.com schrieb:

    I really can't see anything wrong with the input signal from ALSA. If
    there is any incorrect scaling, it has to be elsewhere in lv_audio.c
    where the samples are converted.

    If you're using lv_scope to check the waveforms, be aware that peak
    amplitudes will show up at 1/4 and 3/4 of the display height. They will
    not reach the top or bottom of the display.


    Reply to this email directly or view it on GitHub:
    #4 (comment)

    i suppose it's not even directly linked to lv but to my snd-hw driver. It offers various alsa devices (hw:, plugdev:, etc) and iirc i read something about software processing on one of them. I can't just hardcode another device into input_alsa.c, this doesn't work. I merely wanted to know if anyone else is experiencing this...

  7. kaixiong commented on Apr 24, 2012

    @kaixiong
    Member

    Hmm.. I have other issues with the ALSA input plugin though. The most serious one is that It hangs after a while.

  8. rigid commented on Jan 5, 2013

    @rigid
    MemberAuthor

    issue seems to be fixed in cxx branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions