Comments (4)
Ok, so when I am running the snapdroid without a speaker connected to 3.5mm out and then while playing plugging in the 3.5mm plug the same happens. The Playback stops and can only be recovered by stopping and restarting.
Log Output:
06-26 10:59:41.297 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: MSG_RESIZED_REPORT: frame=(0,0,2560,1600) ci=(0,54,0,34) vi=(0,54,0,34) or=2
06-26 10:59:41.393 6784 6784 E ViewRootImpl@2c404dd[MainActivity]: Surface is not valid.
06-26 10:59:41.398 6784 6784 E ViewRootImpl@2c404dd[MainActivity]: Surface is not valid.
06-26 10:59:41.448 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: stopped(false) old=true
06-26 10:59:41.477 6784 18111 D OpenGLRenderer: destroyEglSurface : 0x7d0e577d00
06-26 10:59:41.481 6784 18111 D OpenGLRenderer: ~ReliableSurface : 0x7cb52d1800
06-26 10:59:41.487 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: Relayout returned: old=(0,0,2560,1600) new=(0,0,2560,1600) req=(2560,1600)0 dur=5 res=0x40001 s={true 535287267328} ch=true
06-26 10:59:41.487 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: RELAYOUT_RES_KEEP_ALIVE_SURFACE on 40001
06-26 10:59:41.487 6784 18111 D OpenGLRenderer: createReliableSurface : 0x7cb52d1800(0x7ca19b8000)
06-26 10:59:41.495 6784 18111 D OpenGLRenderer: makeCurrent EglSurface : 0x0 -> 0x7d0e577a80
06-26 10:59:41.496 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: stopped(false) old=false
06-26 10:59:41.497 6784 6784 D Main : lastRunVersion: 2000, version: 2000
06-26 10:59:41.526 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: Relayout returned: old=(0,0,2560,1600) new=(0,0,2560,1600) req=(2560,1600)0 dur=6 res=0x40001 s={true 535287267328} ch=false
06-26 10:59:41.546 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
06-26 10:59:41.546 6784 6784 D InputMethodManager: prepareNavigationBarInfo() DecorView@fb6098c[MainActivity]
06-26 10:59:41.546 6784 6784 D InputMethodManager: getNavigationBarColor() -855310
06-26 10:59:41.548 6784 6784 D InputMethodManager: prepareNavigationBarInfo() DecorView@fb6098c[MainActivity]
06-26 10:59:41.548 6784 6784 D InputMethodManager: getNavigationBarColor() -855310
06-26 10:59:41.548 6784 6784 V InputMethodManager: Starting input: tba=de.badaix.snapcast ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
06-26 10:59:41.548 6784 6784 D InputMethodManager: startInputInner - Id : 0
06-26 10:59:41.548 6784 6784 I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
06-26 10:59:41.549 6784 6784 D InputTransport: Input channel destroyed: 'ClientS', fd=58
06-26 10:59:41.958 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: ViewPostIme pointer 0
06-26 10:59:41.994 6784 6784 D AbsListView: reportScrollStateChange() newState : 1
06-26 10:59:42.133 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: ViewPostIme pointer 1
06-26 10:59:42.133 6784 6784 D AbsListView: onTouchUp() mTouchMode : 3
06-26 10:59:42.133 6784 6784 D AbsListView: onTouchUp() TOUCH_MODE_SCROLL initialVelocity : 0
06-26 10:59:42.133 6784 6784 D AbsListView: reportScrollStateChange() newState : 0
06-26 10:59:46.652 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: ViewPostIme pointer 0
06-26 10:59:46.906 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: ViewPostIme pointer 1
06-26 10:59:46.908 6784 28819 D TCP : Sending: {"jsonrpc":"2.0","method":"Client.SetVolume","id":41,"params":{"id":"26c6d10e-cae9-44a1-ae47-0da4b7a36ea3","volume":{"percent":15,"muted":false}}}
06-26 10:59:46.912 6784 5303 D Main : [Info] (Controller) ServerSettings - buffer: 400, latency: -318, volume: 15, muted: 0
06-26 10:59:46.912 6784 28817 D TCP : Received Message: '{"id":41,"jsonrpc":"2.0","result":{"volume":{"muted":false,"percent":15}}}'
06-26 10:59:46.912 6784 28817 D RC : Response to: Client.SetVolume
06-26 10:59:48.493 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: ViewPostIme pointer 0
06-26 10:59:48.653 6784 6784 D AbsListView: reportScrollStateChange() newState : 1
06-26 10:59:48.837 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: ViewPostIme pointer 1
06-26 10:59:48.837 6784 6784 D AbsListView: onTouchUp() mTouchMode : 3
06-26 10:59:48.837 6784 6784 D AbsListView: onTouchUp() TOUCH_MODE_SCROLL initialVelocity : 288
06-26 10:59:48.837 6784 6784 D AbsListView: reportScrollStateChange() newState : 2
06-26 10:59:48.984 6784 6784 D AbsListView: reportScrollStateChange() newState : 0
06-26 10:59:49.184 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: ViewPostIme pointer 0
Log when i have it running with 3.5mm and remove the plug (also stops playback)
06-26 11:05:33.586 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: MSG_RESIZED_REPORT: frame=(0,0,2560,1600) ci=(0,54,0,34) vi=(0,54,0,34) or=2
06-26 11:05:33.594 6784 6784 E ViewRootImpl@2c404dd[MainActivity]: Surface is not valid.
06-26 11:05:33.603 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: stopped(false) old=true
06-26 11:05:33.657 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: stopped(false) old=false
06-26 11:05:33.661 6784 6784 D Main : lastRunVersion: 2000, version: 2000
06-26 11:05:33.664 6784 18111 D OpenGLRenderer: destroyEglSurface : 0x7d0e58d180
06-26 11:05:33.668 6784 18111 D OpenGLRenderer: ~ReliableSurface : 0x7cb52d1800
06-26 11:05:33.676 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: Relayout returned: old=(0,0,2560,1600) new=(0,0,2560,1600) req=(2560,1600)0 dur=8 res=0x40001 s={true 535408058368} ch=true
06-26 11:05:33.676 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: RELAYOUT_RES_KEEP_ALIVE_SURFACE on 40001
06-26 11:05:33.676 6784 18111 D OpenGLRenderer: createReliableSurface : 0x7cb52d1800(0x7ca8cea000)
06-26 11:05:33.680 6784 18111 D OpenGLRenderer: makeCurrent EglSurface : 0x0 -> 0x7d0e577d80
06-26 11:05:33.756 6784 6784 D ViewRootImpl@2c404dd[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
06-26 11:05:33.756 6784 6784 D InputMethodManager: prepareNavigationBarInfo() DecorView@fb6098c[MainActivity]
06-26 11:05:33.756 6784 6784 D InputMethodManager: getNavigationBarColor() -855310
06-26 11:05:33.761 6784 6784 D InputMethodManager: prepareNavigationBarInfo() DecorView@fb6098c[MainActivity]
06-26 11:05:33.761 6784 6784 D InputMethodManager: getNavigationBarColor() -855310
06-26 11:05:33.761 6784 6784 V InputMethodManager: Starting input: tba=de.badaix.snapcast ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
06-26 11:05:33.761 6784 6784 D InputMethodManager: startInputInner - Id : 0
06-26 11:05:33.761 6784 6784 I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
06-26 11:05:33.766 6784 6784 D InputTransport: Input channel destroyed: 'ClientS', fd=76
from snapdroid.
Looks like snapclient must listen to such events: https://github.com/google/oboe/blob/master/docs/notes/disconnect.md
I will check next week when I'm back from my vacation.
from snapdroid.
Going back to 19.0.1 and manually choosing the OpenSL this does not happen.
So the link above sounds correct. Only happens on AAudio.
I can confirm the same behavior as well once more with a FireTV Device. Changing the source will stop the stream with no way to recover but to manually stop and restart the service if running on AAudio with 0.20.0
from snapdroid.
Will be fixed in v0.22
badaix/snapcast@869a9a2
from snapdroid.
Related Issues (20)
- Can connect with IP but not with hostname HOT 2
- android stream source
- Audio Drops on Android Clients HOT 1
- Change play/stop icons
- Modern Redesign of the App
- compile snapcast server HOT 7
- App has disappeared from the Play store HOT 5
- Snapdroid does not play any audio HOT 4
- Add option to show ID instead of HOST Field in Stream Overview
- [Feature request] Basic Buttons to control an MPD server /next, play, back/ -
- Build Snapdroid in Windows 10 HOT 2
- Allow HTTP connections
- Start/ Stop client with ADB HOT 1
- Android: Snapdroid thin client HOT 1
- Snapclient.so not found HOT 1
- "error: Connection refused" HOT 2
- No sound on android client
- Snapdroid clients disconnect after ~12 hours on recent Android versions HOT 1
- Run client without RPC support
- description for how to use the GUI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snapdroid.