Giter Site home page Giter Site logo

Comments (7)

gen2brain avatar gen2brain commented on August 16, 2024

Hi,

If you build with -tags mal_debug you can get more info about the lock. You can also try to force one of WASAPI, DirectSound, WinMM and see what is different.

Also, current mini_al.h is not up to date with upstream, maybe it was a bug with mini_al that is already solved, with more info you can maybe also ask fo help there.

from malgo.

howdoicomputer avatar howdoicomputer commented on August 16, 2024

Yeah, I'm asking upstream here: mackron/miniaudio#43

Also, how do I force a back end? When I try passing in a back end to initContext like so...

backend := []malgo.Backend{malgo.BackendDsound}

I end up getting a device different from my headset and it's still on WASAPI.

[WASAPI] Default Capture Device (Capture)
  Format:      16-bit Signed Integer -> 16-bit Signed Integer
  Channels:    1 -> 2
  Sample Rate: 8000 -> 48000

If I'm forcing a back end do I also have to find the device I want via Context.Devices()?

Thanks, @gen2brain!

from malgo.

howdoicomputer avatar howdoicomputer commented on August 16, 2024

I'm also changing my code so that the allocated context and initialized device stay active until my program exits in the hopes that fixes things.
howdoicomputer/onair#1

from malgo.

mackron avatar mackron commented on August 16, 2024

I think that diagnostic message is actually a bug in mini_al which I fixed a while ago: mackron/miniaudio@80e0777. I'm pretty sure it actually is using DirectSound.

from malgo.

gen2brain avatar gen2brain commented on August 16, 2024

@howdoicomputer mini_al is updated to v0.8.14, update lib/repo and try now.

from malgo.

howdoicomputer avatar howdoicomputer commented on August 16, 2024

@gen2brain Thank you so much! I'm going to see if that between the version update and my code changes if the problem is fixed.

from malgo.

howdoicomputer avatar howdoicomputer commented on August 16, 2024

@gen2brain The problem has gone away. I think it might have been more that I was reinitializing context and the device every five seconds.

from malgo.

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.