voxeet / voxeet-sdk-android-audio Goto Github PK
View Code? Open in Web Editor NEWManage and improve Android Audio lifecycle (Routes, headsets, ...)
License: Apache License 2.0
Manage and improve Android Audio lifecycle (Routes, headsets, ...)
License: Apache License 2.0
When having bluetooth disconnecting or reconnecting multiple times (possible system lifecycle), the bluetooth implementation of the library could crash in the audio v2.
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Handler.removeCallbacks(java.lang.Runnable)' on a null object reference
at com.voxeet.audio2.manager.BluetoothHeadsetDeviceManager.onNewBluetoothServiceConnectivity(BluetoothHeadsetDeviceManager.java:127)
at com.voxeet.audio2.manager.BluetoothHeadsetDeviceManager.lambda$6wqK44RXdYIe7s4vy9u-gr34RVo(BluetoothHeadsetDeviceManager.java)
at com.voxeet.audio2.manager.-$$Lambda$BluetoothHeadsetDeviceManager$cGuJelgeSC4-1iRlROCOl6EjarU.apply(-.java:4)
at com.voxeet.audio2.manager.bluetooth.BluetoothHeadsetServiceListener$1.onServiceDisconnected(BluetoothHeadsetServiceListener.java:48)
at android.bluetooth.BluetoothHeadset$3.handleMessage(BluetoothHeadset.java:1206)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
The expected behaviour is to simply avoid the mechanism to be resending the command
hi there,
i download this project and try to compile but than i got this issue dlopen failed: library "libomp.so" not found
Can you guide me how i can fix this. i try to google but did not understand the issue. thanks
When connecting to a bluetooth device, the process can take up some seconds. However, calling disconnect on this device in this timeframe is not cancelling the action.
It could be an improvement when calling both quickly when dealing with connecting to a conference and then leaving it "early"
Using the dolby.io app, the phone call mode is still activated after leaving the conference. However, checking the code shows that the normal mode is properly called.
Expected behavior:
Calling connect to the device with DeviceType.NORMAL_MEDIA
mode should be enough (!)
Actual behavior:
Calling connect to the device with DeviceType.NORMAL_MEDIA
mode is keeping the call mode in the app
Notes:
However calling manually,
AudioFocusManager focusManager = new AudioFocusManager(AudioFocusMode.MEDIA);
MediaMode mode = new MediaMode(audioManager, focusManager);
return mode.abandonAudioFocus(); //default behavior is switching to abandon focus + normal
//and resolving the promise of course
To be investigated :
This will likely bring a non breaking API modification but a behavioural modifications. The libraries using this audio sdk (like the Dolby.io SDK) will likely need an update to integrate this fix/improvement
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.