зеркало из https://github.com/xamarin/ios-samples.git
CoreMidiSample migrated to 64-bits
This commit is contained in:
Родитель
ca2fb95ad3
Коммит
25c735ac46
|
@ -2,9 +2,9 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using MonoTouch.Foundation;
|
||||
using MonoTouch.UIKit;
|
||||
using MonoTouch.CoreMidi;
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
using CoreMidi;
|
||||
using MonoTouch.Dialog;
|
||||
using System.Threading;
|
||||
|
||||
|
@ -54,8 +54,8 @@ namespace CoreMidiSample
|
|||
|
||||
RootElement MakeHardware ()
|
||||
{
|
||||
int sources = Midi.SourceCount;
|
||||
int destinations = Midi.DestinationCount;
|
||||
int sources = (int)Midi.SourceCount;
|
||||
int destinations = (int)Midi.DestinationCount;
|
||||
|
||||
return new RootElement ("Endpoints (" + sources + ", " + destinations +")") {
|
||||
new Section ("Sources"){
|
||||
|
@ -75,13 +75,13 @@ namespace CoreMidiSample
|
|||
{
|
||||
return new RootElement ("Devices (" + Midi.DeviceCount + ", " + Midi.ExternalDeviceCount + ")") {
|
||||
new Section ("Internal Devices"){
|
||||
from x in Enumerable.Range (0, Midi.DeviceCount)
|
||||
from x in Enumerable.Range (0, (int)Midi.DeviceCount)
|
||||
let dev = Midi.GetDevice (x)
|
||||
where dev.EntityCount > 0
|
||||
select MakeDevice (dev)
|
||||
},
|
||||
new Section ("External Devices"){
|
||||
from x in Enumerable.Range (0, Midi.ExternalDeviceCount)
|
||||
from x in Enumerable.Range (0, (int)Midi.ExternalDeviceCount)
|
||||
let dev = Midi.GetExternalDevice (x)
|
||||
where dev.EntityCount > 0
|
||||
select (Element) MakeDevice (dev)
|
||||
|
@ -93,16 +93,16 @@ namespace CoreMidiSample
|
|||
{
|
||||
return new RootElement (String.Format ("{2} {0} {1}", dev.Manufacturer, dev.Model, dev.EntityCount)){
|
||||
new Section ("Entities") {
|
||||
from ex in Enumerable.Range (0, dev.EntityCount)
|
||||
from ex in Enumerable.Range (0, (int)dev.EntityCount)
|
||||
let entity = dev.GetEntity (ex)
|
||||
select (Element) new RootElement (entity.Name) {
|
||||
new Section ("Sources"){
|
||||
from sx in Enumerable.Range (0, entity.Sources)
|
||||
from sx in Enumerable.Range (0, (int)entity.Sources)
|
||||
let endpoint = entity.GetSource (sx)
|
||||
select MakeEndpoint (endpoint)
|
||||
},
|
||||
new Section ("Destinations"){
|
||||
from sx in Enumerable.Range (0, entity.Destinations)
|
||||
from sx in Enumerable.Range (0, (int)entity.Destinations)
|
||||
let endpoint = entity.GetDestination (sx)
|
||||
select MakeEndpoint (endpoint)
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<DebugType>full</DebugType>
|
||||
<Optimize>False</Optimize>
|
||||
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<DefineConstants>DEBUG;XAMCORE_2_0;ARCH_64</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>False</ConsolePause>
|
||||
|
@ -25,6 +25,7 @@
|
|||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchI18n>
|
||||
</MtouchI18n>
|
||||
<MtouchExtraArgs>--registrar:static --nofastsim --override-abi x86_64</MtouchExtraArgs>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
@ -63,8 +64,12 @@
|
|||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="monotouch" />
|
||||
<Reference Include="MonoTouch.Dialog-1" />
|
||||
<Reference Include="Xamarin.iOS">
|
||||
<HintPath>\Developer\MonoTouch\usr\lib\mono\Xamarin.iOS\Xamarin.iOS.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MonoTouch.Dialog-1">
|
||||
<HintPath>\Developer\MonoTouch\usr\lib\mono\Xamarin.iOS\MonoTouch.Dialog-1.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Info.plist" />
|
||||
|
@ -99,4 +104,4 @@
|
|||
<ITunesArtwork Include="Resources\iTunesArtwork.png" />
|
||||
<ITunesArtwork Include="Resources\iTunesArtwork%402x" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче