Bug 33721 - No Sound on XAP when run as administrator / elevated
Summary: No Sound on XAP when run as administrator / elevated
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Xamarin Android Player
Classification: Xamarin
Component: Player ()
Version: unspecified
Hardware: PC Windows
: Low minor
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-09-06 07:18 UTC by Zahi Kramer
Modified: 2015-10-01 07:28 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
android player log files (16.41 KB, application/octet-stream)
2015-09-06 07:18 UTC, Zahi Kramer
Details
my pc system info (137.87 KB, application/octet-stream)
2015-09-06 07:19 UTC, Zahi Kramer
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description Zahi Kramer 2015-09-06 07:18:16 UTC
Created attachment 12795 [details]
android player log files

No sound heard on XAP for every Android Image.
tested on ver 0.4.4 , 0.5.5 , 0.5.6
Comment 1 Zahi Kramer 2015-09-06 07:19:07 UTC
Created attachment 12796 [details]
my pc system info
Comment 2 Mark Simpson 2015-09-14 11:06:39 UTC
How are you testing the sound in the devices? I cannot replicate this and have tried all the listed versions of XAP on various computers running Windows 8.1.
Comment 3 Zahi Kramer 2015-09-15 17:59:25 UTC
have you tried with gigabyte bord, Z97X-Gaming GT ?
(Realtek audio driver)
Comment 4 PJ 2015-09-16 14:05:32 UTC
We do not have a machine with that exact motherboard Zahi, but if it comes to that we might be able to get one to reproduce.

I am not sure we've exhausted other avenues of investigation yet though - can you tell us which sound you're trying to hear, and/or provide us the source code for the project that should be making sound and it isn't?

Can you confirm that the same app is producing sound correctly through the Android emulators from Google, and/or on a physical device?

Thanks!
Comment 5 Zahi Kramer 2015-09-16 16:15:55 UTC
Build the project GoneBananas of Cocossharp examples .
it's playing sound on background and on catching bananas .
It's working on real device android . not on XAP.
Didn't check it on android emulators
Comment 6 Zahi Kramer 2015-09-16 16:16:16 UTC
Are there any settings I can change on XAP?
or in VBox?
thanks
Comment 8 Peter Collins 2015-09-17 11:07:53 UTC
I was able to reproduce this using XAP 0.5.6 on Windows 10, using the MediaBrowserService sample:

https://github.com/xamarin/monodroid-samples/tree/master/android5.0/MediaBrowserService

I was able to reproduce with the Nexus 5 Lollipop (api 22) image, and the same sample successfully played back audio on a physical Nexus 7 and an API 22 x86 Google Emulator.
Comment 9 Peter Collins 2015-09-17 11:08:16 UTC
Marking as confirmed as per Comment #8
Comment 10 Peter Collins 2015-09-17 11:43:30 UTC
I didn't see some of the previous updates before my initial investigation. After looking at this further, it seems I was able to reproduce the known issue with running XAP with VB5 on Win10. On that environment, system sounds and audio playback attempts were not working.

I was unable to reproduce any Audio issues on a Windows 8.1 box however, using XAP 0.5.6 with both Virtual Box 4 and 5.
Comment 11 Mark Simpson 2015-09-17 11:49:32 UTC
Can you confirm which versions of VirtualBox you were using, VirtualBox 5 is having updates quite frequently and we've seen an issue with sound with earlier versions that have been fixed by newer versions.

With reproduction in comment #8, do system sounds work?
Comment 12 Mark Simpson 2015-09-17 11:53:09 UTC
(In reply to comment #10)
> I didn't see some of the previous updates before my initial investigation.
> After looking at this further, it seems I was able to reproduce the known issue
> with running XAP with VB5 on Win10. On that environment, system sounds and
> audio playback attempts were not working.
> 

Can you confirm the audio hardware in the host system. 

> I was unable to reproduce any Audio issues on a Windows 8.1 box however, using
> XAP 0.5.6 with both Virtual Box 4 and 5.

This is what I saw as well, the bug was reported against Win8.1 and I've not been able to reproduce the issue on that OS. I wanted to be able to test it with Realtek audio hardware to see if that config difference was causing the issue.
Comment 13 Peter Collins 2015-09-17 12:18:53 UTC
On the Windows 10 environment I have the following:
> AsRock Z77 Extreme4 w/ Realtek Digital Output (HD Audio)

The windows 8.1 machine was an Intel NUC[0] which appears to be using Intel HD Audio.

[0] http://www.intel.com/content/www/us/en/nuc/overview.html
Comment 14 Zahi Kramer 2015-09-20 14:15:31 UTC
just wanted to inform on new discovery.
i used to activate XAP via elevated mode (with administrator rights).
i tried to activate now XAP on regular mode and I HEAR SOUND.
IT'S WORKING.

so the bug is minor here , but still , why not in elevated mode?
Comment 15 Mark Simpson 2015-09-21 04:42:03 UTC
There is no need to run XAP elevated, doing so can cause weird permissions issues due to multi-user installs.

I'm going to downgrade, and retitle this bug.
Comment 16 Mark Simpson 2015-10-01 07:28:38 UTC
Running XAP as Administrator is not something that is supported, nor is support for this running mode on the roadmap.