Git Product home page Git Product logo

Comments (9)

philburk avatar philburk commented on May 20, 2024 1

The EXCLUSIVE mode is for exclusive access to the special MMAP path.
It is not exclusive for all audio. Other apps can play audio over the Legacy (non-MMAP) path even when your app have EXCLUSIVE MMAP access.

from oboe.

kus04e4ek avatar kus04e4ek commented on May 20, 2024

Ran Data Paths.
data paths.zip

from oboe.

robertwu1 avatar robertwu1 commented on May 20, 2024

It's really strange because your device is only opening shared streams. Can you attach a bug report?

from oboe.

philburk avatar philburk commented on May 20, 2024

It's really strange because your device is only opening shared streams.

It seems OboeTester is only requesting Shared streams and not Exclusive streams.
It was probably considered redundant because Shared streams are built on top of Exclusive streams.
So if Exclusive failed then Shared would fail.

from oboe.

philburk avatar philburk commented on May 20, 2024

I created an internal bug for Samsung:
b/322234897 | P2 | Samsung A21S audio MMAP output is silent

from oboe.

kus04e4ek avatar kus04e4ek commented on May 20, 2024

It looks like I can't reproduce it anymore. Ran Data Paths again and every test passed. I restarted my phone not too long ago, so maybe MMAP output just broke after some time of my phone being active?
data_paths.zip

from oboe.

kus04e4ek avatar kus04e4ek commented on May 20, 2024

Also, I noticed that audio stream still gets exclusive sharing mode even if there is audio playing in the other app. I might understand exclusive sharing mode wrong, but isn't it supposed to work only if one audio stream is playing, so that it would be possible to directly write audio data to the output? If I understand the mode correctly, then it might be possible that the device just tells the app that exclusive sharing mode is obtained when it actually failed and the same happens with MMAP.

from oboe.

kus04e4ek avatar kus04e4ek commented on May 20, 2024

Also, I noticed that audio stream still gets exclusive sharing mode even if there is audio playing in the other app.

Audio stream didn't get exclusive sharing mode when I ran the app that requests exclusive sharing mode. But audio stream gets exclusive sharing mode when the other app requests shared sharing mode. Is this expected behavior?

from oboe.

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.