summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew S <matthewsot@outlook.com>2016-12-26 23:56:26 -0800
committerMatthew S <matthewsot@outlook.com>2016-12-26 23:56:26 -0800
commitf9195465dcb1ab24b3792485729f6d6c6ef3ec9a (patch)
tree9ff34715cf7f1641c64987f47dabb4a52e28ccca
parenta09dbd1be6f8ecd866485288b65430aef53dcc90 (diff)
starting on iOS WAVRecorderHEADmaster
-rw-r--r--WAVRecorder/WAVRecorder.Android/WAVRecorder.cs2
-rw-r--r--WAVRecorder/WAVRecorder.iOS/Properties/AssemblyInfo.cs36
-rw-r--r--WAVRecorder/WAVRecorder.iOS/WAVRecorder.cs31
-rw-r--r--WAVRecorder/WAVRecorder.iOS/WAVRecorder.iOS.csproj53
-rw-r--r--WAVRecorder/WAVRecorder.sln18
5 files changed, 140 insertions, 0 deletions
diff --git a/WAVRecorder/WAVRecorder.Android/WAVRecorder.cs b/WAVRecorder/WAVRecorder.Android/WAVRecorder.cs
index 96573cc..4c27cd0 100644
--- a/WAVRecorder/WAVRecorder.Android/WAVRecorder.cs
+++ b/WAVRecorder/WAVRecorder.Android/WAVRecorder.cs
@@ -34,6 +34,8 @@ namespace WAVRecorder.Android
WAVStream = new MemoryStream();
+ //TODO: write the WAV header?
+
return new Task<bool>(() => true);
}
diff --git a/WAVRecorder/WAVRecorder.iOS/Properties/AssemblyInfo.cs b/WAVRecorder/WAVRecorder.iOS/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..858fbbc
--- /dev/null
+++ b/WAVRecorder/WAVRecorder.iOS/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("WAVRecorder.iOS")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WAVRecorder.iOS")]
+[assembly: AssemblyCopyright("Copyright © 2016")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("47740206-224e-4124-ab44-16e0796cd1e1")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/WAVRecorder/WAVRecorder.iOS/WAVRecorder.cs b/WAVRecorder/WAVRecorder.iOS/WAVRecorder.cs
new file mode 100644
index 0000000..fb26ab9
--- /dev/null
+++ b/WAVRecorder/WAVRecorder.iOS/WAVRecorder.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WAVRecorder.iOS
+{
+ public class WAVRecorder : IWAVRecorder
+ {
+ public IDisposable RawWAVStream => throw new NotImplementedException();
+
+ public Stream WAVStream => throw new NotImplementedException();
+
+ public Task<bool> RequestPermissionsAndInitAsync()
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task StartRecordingAsync()
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task StopRecordingAsync()
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/WAVRecorder/WAVRecorder.iOS/WAVRecorder.iOS.csproj b/WAVRecorder/WAVRecorder.iOS/WAVRecorder.iOS.csproj
new file mode 100644
index 0000000..1ec47c9
--- /dev/null
+++ b/WAVRecorder/WAVRecorder.iOS/WAVRecorder.iOS.csproj
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{47740206-224E-4124-AB44-16E0796CD1E1}</ProjectGuid>
+ <ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <RootNamespace>WAVRecorder.iOS</RootNamespace>
+ <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
+ <AssemblyName>WAVRecorder.iOS</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="Xamarin.iOS" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Resources\" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="WAVRecorder.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\WAVRecorder\WAVRecorder.csproj">
+ <Project>{67f9d3a8-f71e-4428-913f-c37ae82cdb24}</Project>
+ <Name>WAVRecorder</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
+</Project> \ No newline at end of file
diff --git a/WAVRecorder/WAVRecorder.sln b/WAVRecorder/WAVRecorder.sln
index b4cfedf..fd3d230 100644
--- a/WAVRecorder/WAVRecorder.sln
+++ b/WAVRecorder/WAVRecorder.sln
@@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WAVRecorder.UWP", "WAVRecor
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WAVRecorder.Android", "WAVRecorder.Android\WAVRecorder.Android.csproj", "{11371366-96DD-4E63-BA74-D69C3983C49F}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WAVRecorder.iOS", "WAVRecorder.iOS\WAVRecorder.iOS.csproj", "{47740206-224E-4124-AB44-16E0796CD1E1}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -69,6 +71,22 @@ Global
{11371366-96DD-4E63-BA74-D69C3983C49F}.Release|x64.Build.0 = Release|Any CPU
{11371366-96DD-4E63-BA74-D69C3983C49F}.Release|x86.ActiveCfg = Release|Any CPU
{11371366-96DD-4E63-BA74-D69C3983C49F}.Release|x86.Build.0 = Release|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Debug|ARM.ActiveCfg = Debug|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Debug|ARM.Build.0 = Debug|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Debug|x64.Build.0 = Debug|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Debug|x86.Build.0 = Debug|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Release|ARM.ActiveCfg = Release|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Release|ARM.Build.0 = Release|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Release|x64.ActiveCfg = Release|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Release|x64.Build.0 = Release|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Release|x86.ActiveCfg = Release|Any CPU
+ {47740206-224E-4124-AB44-16E0796CD1E1}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback