GithubHelp home page GithubHelp logo

Comments (3)

nchashch avatar nchashch commented on June 26, 2024

I tried to debug this problem and I have found that libc::poll call in EventLoop::run method in src/alsa/mod.rs at L258 doesn't return (it seems it just runs in an infinite loop) after a few iterations (hence a short bit of sound plays at the begining).

Also on my machine Buffer::finish method (defined at L674 in src/alsa/mod.rs) is called only once or twice (so alsa::snd_pcm_writei is called only once or twice) after that SamplesStream::schedule is called (maybe something goes wrong there) and then Buffer::finish is never called again.

from cpal.

jwestfall69 avatar jwestfall69 commented on June 26, 2024

Can you guys verify the above patch fixes the beep stall.

I'm a little unsatisfied with the patch with where I'm calling alsa::snd_pcm_sw_params_set_avail_min(),. Its inside the bits that are setting up buffer_len/period_len values, which seems like bad form.

from cpal.

tomaka avatar tomaka commented on June 26, 2024

@jwestfall69 The style is not a problem for me.

from cpal.

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.