Bug 35775 - Android.Media.ToneGenerator does not allow for volume int
Summary: Android.Media.ToneGenerator does not allow for volume int
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2015-11-11 00:42 UTC by Cody Beyer (MSFT)
Modified: 2015-11-16 03:40 UTC (History)
1 user (show)

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


Attachments
NativeSample (5.08 MB, application/zip)
2015-11-11 00:42 UTC, Cody Beyer (MSFT)
Details

Description Cody Beyer (MSFT) 2015-11-11 00:42:48 UTC
Created attachment 13772 [details]
NativeSample

### Description

In Java, Android.Media.ToneGenerator allows you to pass 0 through 100 int value for volume of tone. This does not appear replicated in Xamarin, as Volume is controlled by an enum containing either 0 or 100

### Native Sample

Attached

### Mono.Android Assembly Browser

namespace Android.Media
{
	public enum Volume
	{
		Max = 100,
		Min = 0
	}
}

### Sample Details 

The sample has two buttons, both play a DTMF Tone 3, the top button 100 volume, the lower button at 50 volume.

### Versions

=== Xamarin Studio ===

Version 5.10 (build 860)
Installation UUID: 73204efb-3f52-4561-bfd0-1a9af26f9341
Runtime:
	Mono 4.2.1 (explicit/8862921)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010091

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.1.1 (9081)
Build 7B1005

=== Xamarin.Android ===

Version: 6.0.0.27 (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: 9.2.1.21 (Business Edition)
Hash: 9ce9e8b
Branch: master
Build date: 2015-10-28 19:11:03-0400

=== Xamarin.Mac ===

Version: 2.4.0.105 (Business Edition)

=== Build Information ===

Release ID: 510000860
Git revision: 7c46a0b709d51ad5d5a5ed90a4671cc7b6928e62
Build date: 2015-10-29 17:17:52-04
Xamarin addins: b9337905aca5dc276190d78819728a59cda33a43
Build lane: monodevelop-lion-cycle6

=== Operating System ===

Mac OS X 10.11.1
Darwin Codys-MacBook-Pro.local 15.0.0 Darwin Kernel Version 15.0.0
    Sat Sep 19 15:53:46 PDT 2015
    root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
Comment 1 Atsushi Eno 2015-11-16 03:40:05 UTC
Fixed in master. Thanks for the report.

[master 2ec22d2]

Note You need to log in before you can comment on or make changes to this bug.