Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added WP7 version with an example.

  • Loading branch information...
commit 2155e7ffe9a3de274bebf224c7ba50579541a62c 1 parent b107d0f
Atsushi Eno authored September 11, 2011
54  csvorbis/MoonVorbis/OggMediaStreamSource.cs
... ...
@@ -1,6 +1,6 @@
1 1
 
2 2
 using System;
3  
-using System.Collections.Generic;
  3
+using System.Collections.Generic;
4 4
 using System.Diagnostics;
5 5
 using System.Globalization;
6 6
 using System.IO;
@@ -11,32 +11,34 @@
11 11
 using MediaParsers;
12 12
 
13 13
 namespace MoonVorbis
14  
-{
15  
-    public class DebugWriter : TextWriter
16  
-    {
17  
-        public override Encoding Encoding
18  
-        {
19  
-            get { return Encoding.UTF8; }
20  
-        }
21  
-
22  
-        public override void WriteLine ()
23  
-        {
24  
-            Debug.WriteLine (String.Empty);
25  
-        }
26  
-
27  
-        public override void WriteLine (string s)
28  
-        {
29  
-            Debug.WriteLine (s);
30  
-        }
  14
+{
  15
+    public class DebugWriter : TextWriter
  16
+    {
  17
+        public override Encoding Encoding
  18
+        {
  19
+            get { return Encoding.UTF8; }
  20
+        }
  21
+
  22
+        public override void WriteLine ()
  23
+        {
  24
+            Debug.WriteLine (String.Empty);
  25
+        }
  26
+
  27
+        public override void WriteLine (string s)
  28
+        {
  29
+            Debug.WriteLine (s);
  30
+        }
31 31
     }
32 32
 
33 33
     public class OggMediaStreamSource : MediaStreamSource
34 34
 	{
  35
+		TimeSpan trackDuration;
  36
+
35 37
 		int convsize=4096*2;
36 38
 		//byte[] convbuffer=new byte[convsize]; // take 8k out of the data segment, not the stack
37  
-		byte[] convbuffer;
38  
-
39  
-        TextWriter s_err = new DebugWriter(); // Console.Error;
  39
+		byte[] convbuffer;
  40
+
  41
+		TextWriter s_err = new DebugWriter(); // Console.Error;
40 42
 		Stream input;
41 43
 
42 44
 		public OggMediaStreamSource (Stream input)
@@ -441,12 +443,12 @@ protected override void GetSampleAsync (MediaStreamType mediaStreamType)
441 443
                     new MemoryStream (buf.Data, buf.Index, buf.Count, false),
442 444
                     buf.Index,
443 445
                     buf.Count,
444  
-                    timePosition,
445  
-                    emptyDict);
446  
-                timePosition += (long) buf.Count * 10000000L / (44100L * 2L * 2L);
  446
+                    timePosition,
  447
+                    emptyDict);
  448
+                timePosition += (long) buf.Count * 10000000L / (44100L * 2L * 2L);
447 449
                 this.ReportGetSampleCompleted(audioSample);
448  
-            }
449  
-		}
  450
+            }
  451
+		}
450 452
         long timePosition;
451 453
 
452 454
 		// FIXME: should be implemented, but can be done later.
2  csvorbis/MoonVorbis/StringExtensions.cs
@@ -20,7 +20,7 @@
20 20
 
21 21
 namespace ExtensionMethods
22 22
 {
23  
-    using System;
  23
+    using System;
24 24
 
25 25
     /// <summary>
26 26
     /// Extensions for the standard string class.
79  csvorbis/MoonVorbis/WP7Vorbis.csproj
... ...
@@ -0,0 +1,79 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3
+  <PropertyGroup>
  4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  5
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  6
+    <ProductVersion>10.0.20506</ProductVersion>
  7
+    <SchemaVersion>2.0</SchemaVersion>
  8
+    <ProjectGuid>{307DDA08-A47F-498A-B680-B0F946E30E1A}</ProjectGuid>
  9
+    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
  10
+    <OutputType>Library</OutputType>
  11
+    <AppDesignerFolder>Properties</AppDesignerFolder>
  12
+    <RootNamespace>WP7Vorbis</RootNamespace>
  13
+    <AssemblyName>WP7Vorbis</AssemblyName>
  14
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  15
+    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  16
+    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  17
+    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  18
+    <SilverlightApplication>false</SilverlightApplication>
  19
+    <ValidateXaml>true</ValidateXaml>
  20
+    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
  21
+  </PropertyGroup>
  22
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  23
+    <DebugSymbols>true</DebugSymbols>
  24
+    <DebugType>full</DebugType>
  25
+    <Optimize>false</Optimize>
  26
+    <OutputPath>Bin\Debug</OutputPath>
  27
+    <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  28
+    <NoStdLib>true</NoStdLib>
  29
+    <NoConfig>true</NoConfig>
  30
+    <ErrorReport>prompt</ErrorReport>
  31
+    <WarningLevel>4</WarningLevel>
  32
+  </PropertyGroup>
  33
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  34
+    <DebugType>pdbonly</DebugType>
  35
+    <Optimize>true</Optimize>
  36
+    <OutputPath>Bin\Release</OutputPath>
  37
+    <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  38
+    <NoStdLib>true</NoStdLib>
  39
+    <NoConfig>true</NoConfig>
  40
+    <ErrorReport>prompt</ErrorReport>
  41
+    <WarningLevel>4</WarningLevel>
  42
+  </PropertyGroup>
  43
+  <ItemGroup>
  44
+    <Reference Include="System.Windows" />
  45
+    <Reference Include="system" />
  46
+    <Reference Include="System.Core" />
  47
+    <Reference Include="System.Xml" />
  48
+    <Reference Include="System.Net" />
  49
+    <Reference Include="mscorlib.extensions" />
  50
+  </ItemGroup>
  51
+  <ItemGroup>
  52
+    <Compile Include="OggMediaStreamSource.cs" />
  53
+    <Compile Include="StringExtensions.cs" />
  54
+    <Compile Include="WaveFormatExtensible.cs" />
  55
+  </ItemGroup>
  56
+  <ItemGroup>
  57
+    <ProjectReference Include="..\csogg\csogg.wp7.csproj">
  58
+      <Project>{97C3C47A-979D-4CBD-A811-7B45A70E562D}</Project>
  59
+      <Name>csogg.wp7</Name>
  60
+    </ProjectReference>
  61
+    <ProjectReference Include="..\csvorbis\csvorbis.wp7.csproj">
  62
+      <Project>{ED1B1BBB-E5A5-4DD8-B6A5-C247FE782615}</Project>
  63
+      <Name>csvorbis.wp7</Name>
  64
+    </ProjectReference>
  65
+  </ItemGroup>
  66
+  <ItemGroup>
  67
+    <Folder Include="Properties\" />
  68
+  </ItemGroup>
  69
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
  70
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
  71
+  <ProjectExtensions />
  72
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
  73
+       Other similar extension points exist, see Microsoft.Common.targets.
  74
+  <Target Name="BeforeBuild">
  75
+  </Target>
  76
+  <Target Name="AfterBuild">
  77
+  </Target>
  78
+  -->
  79
+</Project>
37  csvorbis/WP7Vorbis/Properties/AssemblyInfo.cs
... ...
@@ -0,0 +1,37 @@
  1
+using System.Reflection;
  2
+using System.Runtime.CompilerServices;
  3
+using System.Runtime.InteropServices;
  4
+using System.Resources;
  5
+
  6
+// General Information about an assembly is controlled through the following 
  7
+// set of attributes. Change these attribute values to modify the information
  8
+// associated with an assembly.
  9
+[assembly: AssemblyTitle("WP7Vorbis")]
  10
+[assembly: AssemblyDescription("")]
  11
+[assembly: AssemblyConfiguration("")]
  12
+[assembly: AssemblyCompany("Microsoft")]
  13
+[assembly: AssemblyProduct("WP7Vorbis")]
  14
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
  15
+[assembly: AssemblyTrademark("")]
  16
+[assembly: AssemblyCulture("")]
  17
+
  18
+// Setting ComVisible to false makes the types in this assembly not visible 
  19
+// to COM components.  If you need to access a type in this assembly from 
  20
+// COM, set the ComVisible attribute to true on that type.
  21
+[assembly: ComVisible(false)]
  22
+
  23
+// The following GUID is for the ID of the typelib if this project is exposed to COM
  24
+[assembly: Guid("b85216f4-712d-4676-ad52-f7e01681bcd7")]
  25
+
  26
+// Version information for an assembly consists of the following four values:
  27
+//
  28
+//      Major Version
  29
+//      Minor Version 
  30
+//      Build Number
  31
+//      Revision
  32
+//
  33
+// You can specify all the values or you can default the Revision and Build Numbers 
  34
+// by using the '*' as shown below:
  35
+[assembly: AssemblyVersion("1.0.0.0")]
  36
+[assembly: AssemblyFileVersion("1.0.0.0")]
  37
+[assembly: NeutralResourcesLanguageAttribute("en-US")]
65  csvorbis/WP7Vorbis/WP7Vorbis.csproj
... ...
@@ -0,0 +1,65 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3
+  <PropertyGroup>
  4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  5
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  6
+    <ProductVersion>10.0.20506</ProductVersion>
  7
+    <SchemaVersion>2.0</SchemaVersion>
  8
+    <ProjectGuid>{307DDA08-A47F-498A-B680-B0F946E30E1A}</ProjectGuid>
  9
+    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
  10
+    <OutputType>Library</OutputType>
  11
+    <AppDesignerFolder>Properties</AppDesignerFolder>
  12
+    <RootNamespace>WP7Vorbis</RootNamespace>
  13
+    <AssemblyName>WP7Vorbis</AssemblyName>
  14
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  15
+    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  16
+    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  17
+    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  18
+    <SilverlightApplication>false</SilverlightApplication>
  19
+    <ValidateXaml>true</ValidateXaml>
  20
+    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
  21
+  </PropertyGroup>
  22
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  23
+    <DebugSymbols>true</DebugSymbols>
  24
+    <DebugType>full</DebugType>
  25
+    <Optimize>false</Optimize>
  26
+    <OutputPath>Bin\Debug</OutputPath>
  27
+    <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  28
+    <NoStdLib>true</NoStdLib>
  29
+    <NoConfig>true</NoConfig>
  30
+    <ErrorReport>prompt</ErrorReport>
  31
+    <WarningLevel>4</WarningLevel>
  32
+  </PropertyGroup>
  33
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  34
+    <DebugType>pdbonly</DebugType>
  35
+    <Optimize>true</Optimize>
  36
+    <OutputPath>Bin\Release</OutputPath>
  37
+    <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  38
+    <NoStdLib>true</NoStdLib>
  39
+    <NoConfig>true</NoConfig>
  40
+    <ErrorReport>prompt</ErrorReport>
  41
+    <WarningLevel>4</WarningLevel>
  42
+  </PropertyGroup>
  43
+  <ItemGroup>
  44
+    <Reference Include="System.Windows" />
  45
+    <Reference Include="system" />
  46
+    <Reference Include="System.Core" />
  47
+    <Reference Include="System.Xml" />
  48
+    <Reference Include="System.Net" />
  49
+    <Reference Include="mscorlib.extensions" />
  50
+  </ItemGroup>
  51
+  <ItemGroup>
  52
+    <Compile Include="Class1.cs" />
  53
+    <Compile Include="Properties\AssemblyInfo.cs" />
  54
+  </ItemGroup>
  55
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
  56
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
  57
+  <ProjectExtensions />
  58
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
  59
+       Other similar extension points exist, see Microsoft.Common.targets.
  60
+  <Target Name="BeforeBuild">
  61
+  </Target>
  62
+  <Target Name="AfterBuild">
  63
+  </Target>
  64
+  -->
  65
+</Project>
19  csvorbis/WP7VorbisTest/App.xaml
... ...
@@ -0,0 +1,19 @@
  1
+<Application 
  2
+    x:Class="Wp7VorbisTest.App"
  3
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
  4
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5
+    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  6
+    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">
  7
+
  8
+    <!--Application Resources-->
  9
+    <Application.Resources>
  10
+    </Application.Resources>
  11
+
  12
+    <Application.ApplicationLifetimeObjects>
  13
+        <!--Required object that handles lifetime events for the application-->
  14
+        <shell:PhoneApplicationService 
  15
+            Launching="Application_Launching" Closing="Application_Closing" 
  16
+            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
  17
+    </Application.ApplicationLifetimeObjects>
  18
+
  19
+</Application>
142  csvorbis/WP7VorbisTest/App.xaml.cs
... ...
@@ -0,0 +1,142 @@
  1
+using System;
  2
+using System.Collections.Generic;
  3
+using System.Linq;
  4
+using System.Net;
  5
+using System.Windows;
  6
+using System.Windows.Controls;
  7
+using System.Windows.Documents;
  8
+using System.Windows.Input;
  9
+using System.Windows.Media;
  10
+using System.Windows.Media.Animation;
  11
+using System.Windows.Navigation;
  12
+using System.Windows.Shapes;
  13
+using Microsoft.Phone.Controls;
  14
+using Microsoft.Phone.Shell;
  15
+
  16
+namespace Wp7VorbisTest
  17
+{
  18
+    public partial class App : Application
  19
+    {
  20
+        /// <summary>
  21
+        /// Provides easy access to the root frame of the Phone Application.
  22
+        /// </summary>
  23
+        /// <returns>The root frame of the Phone Application.</returns>
  24
+        public PhoneApplicationFrame RootFrame { get; private set; }
  25
+
  26
+        /// <summary>
  27
+        /// Constructor for the Application object.
  28
+        /// </summary>
  29
+        public App()
  30
+        {
  31
+            // Global handler for uncaught exceptions. 
  32
+            UnhandledException += Application_UnhandledException;
  33
+
  34
+            // Standard Silverlight initialization
  35
+            InitializeComponent();
  36
+
  37
+            // Phone-specific initialization
  38
+            InitializePhoneApplication();
  39
+
  40
+            // Show graphics profiling information while debugging.
  41
+            if (System.Diagnostics.Debugger.IsAttached)
  42
+            {
  43
+                // Display the current frame rate counters.
  44
+                Application.Current.Host.Settings.EnableFrameRateCounter = true;
  45
+
  46
+                // Show the areas of the app that are being redrawn in each frame.
  47
+                //Application.Current.Host.Settings.EnableRedrawRegions = true;
  48
+
  49
+                // Enable non-production analysis visualization mode, 
  50
+                // which shows areas of a page that are handed off to GPU with a colored overlay.
  51
+                //Application.Current.Host.Settings.EnableCacheVisualization = true;
  52
+
  53
+                // Disable the application idle detection by setting the UserIdleDetectionMode property of the
  54
+                // application's PhoneApplicationService object to Disabled.
  55
+                // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run
  56
+                // and consume battery power when the user is not using the phone.
  57
+                PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
  58
+            }
  59
+
  60
+        }
  61
+
  62
+        // Code to execute when the application is launching (eg, from Start)
  63
+        // This code will not execute when the application is reactivated
  64
+        private void Application_Launching(object sender, LaunchingEventArgs e)
  65
+        {
  66
+        }
  67
+
  68
+        // Code to execute when the application is activated (brought to foreground)
  69
+        // This code will not execute when the application is first launched
  70
+        private void Application_Activated(object sender, ActivatedEventArgs e)
  71
+        {
  72
+        }
  73
+
  74
+        // Code to execute when the application is deactivated (sent to background)
  75
+        // This code will not execute when the application is closing
  76
+        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
  77
+        {
  78
+        }
  79
+
  80
+        // Code to execute when the application is closing (eg, user hit Back)
  81
+        // This code will not execute when the application is deactivated
  82
+        private void Application_Closing(object sender, ClosingEventArgs e)
  83
+        {
  84
+        }
  85
+
  86
+        // Code to execute if a navigation fails
  87
+        private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
  88
+        {
  89
+            if (System.Diagnostics.Debugger.IsAttached)
  90
+            {
  91
+                // A navigation has failed; break into the debugger
  92
+                System.Diagnostics.Debugger.Break();
  93
+            }
  94
+        }
  95
+
  96
+        // Code to execute on Unhandled Exceptions
  97
+        private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
  98
+        {
  99
+            if (System.Diagnostics.Debugger.IsAttached)
  100
+            {
  101
+                // An unhandled exception has occurred; break into the debugger
  102
+                System.Diagnostics.Debugger.Break();
  103
+            }
  104
+        }
  105
+
  106
+        #region Phone application initialization
  107
+
  108
+        // Avoid double-initialization
  109
+        private bool phoneApplicationInitialized = false;
  110
+
  111
+        // Do not add any additional code to this method
  112
+        private void InitializePhoneApplication()
  113
+        {
  114
+            if (phoneApplicationInitialized)
  115
+                return;
  116
+
  117
+            // Create the frame but don't set it as RootVisual yet; this allows the splash
  118
+            // screen to remain active until the application is ready to render.
  119
+            RootFrame = new PhoneApplicationFrame();
  120
+            RootFrame.Navigated += CompleteInitializePhoneApplication;
  121
+
  122
+            // Handle navigation failures
  123
+            RootFrame.NavigationFailed += RootFrame_NavigationFailed;
  124
+
  125
+            // Ensure we don't initialize again
  126
+            phoneApplicationInitialized = true;
  127
+        }
  128
+
  129
+        // Do not add any additional code to this method
  130
+        private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e)
  131
+        {
  132
+            // Set the root visual to allow the application to render
  133
+            if (RootVisual != RootFrame)
  134
+                RootVisual = RootFrame;
  135
+
  136
+            // Remove this handler since it is no longer needed
  137
+            RootFrame.Navigated -= CompleteInitializePhoneApplication;
  138
+        }
  139
+
  140
+        #endregion
  141
+    }
  142
+}
BIN  csvorbis/WP7VorbisTest/ApplicationIcon.png
BIN  csvorbis/WP7VorbisTest/Background.png
37  csvorbis/WP7VorbisTest/Bin/Debug/WMAppManifest.xml
... ...
@@ -0,0 +1,37 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+
  3
+<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
  4
+  <App xmlns="" ProductID="{4c45f2a2-5018-45d4-918b-dfe4024e232d}" Title="Wp7VorbisTest" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal"  Author="Wp7VorbisTest author" Description="Sample description" Publisher="Wp7VorbisTest">
  5
+    <IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
  6
+    <Capabilities>
  7
+      <Capability Name="ID_CAP_GAMERSERVICES"/>
  8
+      <Capability Name="ID_CAP_IDENTITY_DEVICE"/>
  9
+      <Capability Name="ID_CAP_IDENTITY_USER"/>
  10
+      <Capability Name="ID_CAP_LOCATION"/>
  11
+      <Capability Name="ID_CAP_MEDIALIB"/>
  12
+      <Capability Name="ID_CAP_MICROPHONE"/>
  13
+      <Capability Name="ID_CAP_NETWORKING"/>
  14
+      <Capability Name="ID_CAP_PHONEDIALER"/>
  15
+      <Capability Name="ID_CAP_PUSH_NOTIFICATION"/>
  16
+      <Capability Name="ID_CAP_SENSORS"/>
  17
+      <Capability Name="ID_CAP_WEBBROWSERCOMPONENT"/>
  18
+      <Capability Name="ID_CAP_ISV_CAMERA"/>
  19
+      <Capability Name="ID_CAP_CONTACTS"/>
  20
+      <Capability Name="ID_CAP_APPOINTMENTS"/>
  21
+    </Capabilities>
  22
+    <Tasks>
  23
+      <DefaultTask  Name ="_default" NavigationPage="MainPage.xaml"/>
  24
+    </Tasks>
  25
+    <Tokens>
  26
+      <PrimaryToken TokenID="Wp7VorbisTestToken" TaskName="_default">
  27
+        <TemplateType5>
  28
+          <BackgroundImageURI IsRelative="true" IsResource="false">Background.png</BackgroundImageURI>
  29
+          <Count>0</Count>
  30
+          <Title>Wp7VorbisTest</Title>
  31
+        </TemplateType5>
  32
+      </PrimaryToken>
  33
+    </Tokens>
  34
+  </App>
  35
+</Deployment>
  36
+
  37
+<!-- WPSDK Version 7.1.7720.0 -->
35  csvorbis/WP7VorbisTest/MainPage.xaml
... ...
@@ -0,0 +1,35 @@
  1
+<phone:PhoneApplicationPage 
  2
+    x:Class="Wp7VorbisTest.MainPage"
  3
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5
+    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  6
+    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
  7
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8
+    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9
+    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
  10
+    FontFamily="{StaticResource PhoneFontFamilyNormal}"
  11
+    FontSize="{StaticResource PhoneFontSizeNormal}"
  12
+    Foreground="{StaticResource PhoneForegroundBrush}"
  13
+    SupportedOrientations="Portrait" Orientation="Portrait"
  14
+    shell:SystemTray.IsVisible="True">
  15
+
  16
+    <!--LayoutRoot is the root grid where all page content is placed-->
  17
+    <Grid x:Name="LayoutRoot" Background="Transparent">
  18
+        <Grid.RowDefinitions>
  19
+            <RowDefinition Height="Auto"/>
  20
+            <RowDefinition Height="*"/>
  21
+        </Grid.RowDefinitions>
  22
+
  23
+        <!--TitlePanel contains the name of the application and page title-->
  24
+        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
  25
+            <TextBlock x:Name="ApplicationTitle" Text="WP7 Ogg Vorbis Player" Style="{StaticResource PhoneTextNormalStyle}"/>
  26
+            <TextBlock x:Name="PageTitle" Text="Test" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  27
+        </StackPanel>
  28
+
  29
+        <!--ContentPanel - place additional content here-->
  30
+        <TextBox Grid.Row="1" x:Name="UrlInput" Text="http://" Margin="0,0,0,522" />
  31
+        <Button Grid.Row="1" x:Name="PlayButton" Click="PlayButton_Click" Margin="0,91,0,429">Play</Button>
  32
+        <MediaElement x:Name="OggMediaElement" />
  33
+    </Grid>
  34
+
  35
+</phone:PhoneApplicationPage>
40  csvorbis/WP7VorbisTest/MainPage.xaml.cs
... ...
@@ -0,0 +1,40 @@
  1
+using System;
  2
+using System.Collections.Generic;
  3
+using System.Linq;
  4
+using System.Net;
  5
+using System.Windows;
  6
+using System.Windows.Controls;
  7
+using System.Windows.Documents;
  8
+using System.Windows.Input;
  9
+using System.Windows.Media;
  10
+using System.Windows.Media.Animation;
  11
+using System.Windows.Shapes;
  12
+using Microsoft.Phone.Controls;
  13
+
  14
+namespace Wp7VorbisTest
  15
+{
  16
+    public partial class MainPage : PhoneApplicationPage
  17
+    {
  18
+        // Constructor
  19
+        public MainPage()
  20
+        {
  21
+            InitializeComponent();
  22
+        }
  23
+
  24
+        private void PlayButton_TextInput(object sender, TextCompositionEventArgs e)
  25
+        {
  26
+
  27
+        }
  28
+
  29
+        private void PlayButton_Click(object sender, RoutedEventArgs e)
  30
+        {
  31
+            var wreq = WebRequest.Create(this.UrlInput.Text);
  32
+            wreq.BeginGetResponse (delegate (IAsyncResult result) {
  33
+                var wres = wreq.EndGetResponse(result);
  34
+                var stream = wres.GetResponseStream();
  35
+                var ogg = new MoonVorbis.OggMediaStreamSource(stream);
  36
+                Dispatcher.BeginInvoke (() => this.OggMediaElement.SetSource(ogg));
  37
+            }, null);
  38
+        }
  39
+    }
  40
+}
6  csvorbis/WP7VorbisTest/Properties/AppManifest.xml
... ...
@@ -0,0 +1,6 @@
  1
+<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
  2
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3
+>
  4
+    <Deployment.Parts>
  5
+    </Deployment.Parts>
  6
+</Deployment>
37  csvorbis/WP7VorbisTest/Properties/AssemblyInfo.cs
... ...
@@ -0,0 +1,37 @@
  1
+using System.Reflection;
  2
+using System.Runtime.CompilerServices;
  3
+using System.Runtime.InteropServices;
  4
+using System.Resources;
  5
+
  6
+// General Information about an assembly is controlled through the following 
  7
+// set of attributes. Change these attribute values to modify the information
  8
+// associated with an assembly.
  9
+[assembly: AssemblyTitle("Wp7VorbisTest")]
  10
+[assembly: AssemblyDescription("")]
  11
+[assembly: AssemblyConfiguration("")]
  12
+[assembly: AssemblyCompany("Microsoft")]
  13
+[assembly: AssemblyProduct("Wp7VorbisTest")]
  14
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
  15
+[assembly: AssemblyTrademark("")]
  16
+[assembly: AssemblyCulture("")]
  17
+
  18
+// Setting ComVisible to false makes the types in this assembly not visible 
  19
+// to COM components.  If you need to access a type in this assembly from 
  20
+// COM, set the ComVisible attribute to true on that type.
  21
+[assembly: ComVisible(false)]
  22
+
  23
+// The following GUID is for the ID of the typelib if this project is exposed to COM
  24
+[assembly: Guid("b803ab67-72e5-4bbc-8a87-045d3878f560")]
  25
+
  26
+// Version information for an assembly consists of the following four values:
  27
+//
  28
+//      Major Version
  29
+//      Minor Version 
  30
+//      Build Number
  31
+//      Revision
  32
+//
  33
+// You can specify all the values or you can default the Revision and Build Numbers 
  34
+// by using the '*' as shown below:
  35
+[assembly: AssemblyVersion("1.0.0.0")]
  36
+[assembly: AssemblyFileVersion("1.0.0.0")]
  37
+[assembly: NeutralResourcesLanguageAttribute("en-US")]
35  csvorbis/WP7VorbisTest/Properties/WMAppManifest.xml
... ...
@@ -0,0 +1,35 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+
  3
+<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
  4
+  <App xmlns="" ProductID="{4c45f2a2-5018-45d4-918b-dfe4024e232d}" Title="Wp7VorbisTest" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal"  Author="Wp7VorbisTest author" Description="Sample description" Publisher="Wp7VorbisTest">
  5
+    <IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
  6
+    <Capabilities>
  7
+      <Capability Name="ID_CAP_GAMERSERVICES"/>
  8
+      <Capability Name="ID_CAP_IDENTITY_DEVICE"/>
  9
+      <Capability Name="ID_CAP_IDENTITY_USER"/>
  10
+      <Capability Name="ID_CAP_LOCATION"/>
  11
+      <Capability Name="ID_CAP_MEDIALIB"/>
  12
+      <Capability Name="ID_CAP_MICROPHONE"/>
  13
+      <Capability Name="ID_CAP_NETWORKING"/>
  14
+      <Capability Name="ID_CAP_PHONEDIALER"/>
  15
+      <Capability Name="ID_CAP_PUSH_NOTIFICATION"/>
  16
+      <Capability Name="ID_CAP_SENSORS"/>
  17
+      <Capability Name="ID_CAP_WEBBROWSERCOMPONENT"/>
  18
+      <Capability Name="ID_CAP_ISV_CAMERA"/>
  19
+      <Capability Name="ID_CAP_CONTACTS"/>
  20
+      <Capability Name="ID_CAP_APPOINTMENTS"/>
  21
+    </Capabilities>
  22
+    <Tasks>
  23
+      <DefaultTask  Name ="_default" NavigationPage="MainPage.xaml"/>
  24
+    </Tasks>
  25
+    <Tokens>
  26
+      <PrimaryToken TokenID="Wp7VorbisTestToken" TaskName="_default">
  27
+        <TemplateType5>
  28
+          <BackgroundImageURI IsRelative="true" IsResource="false">Background.png</BackgroundImageURI>
  29
+          <Count>0</Count>
  30
+          <Title>Wp7VorbisTest</Title>
  31
+        </TemplateType5>
  32
+      </PrimaryToken>
  33
+    </Tokens>
  34
+  </App>
  35
+</Deployment>
BIN  csvorbis/WP7VorbisTest/SplashScreenImage.jpg
116  csvorbis/WP7VorbisTest/WP7VorbisTest.csproj
... ...
@@ -0,0 +1,116 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3
+  <PropertyGroup>
  4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  5
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  6
+    <ProductVersion>10.0.20506</ProductVersion>
  7
+    <SchemaVersion>2.0</SchemaVersion>
  8
+    <ProjectGuid>{90734433-D9B5-4FD5-B6CA-770230C0EF1C}</ProjectGuid>
  9
+    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
  10
+    <OutputType>Library</OutputType>
  11
+    <AppDesignerFolder>Properties</AppDesignerFolder>
  12
+    <RootNamespace>Wp7VorbisTest</RootNamespace>
  13
+    <AssemblyName>Wp7VorbisTest</AssemblyName>
  14
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  15
+    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  16
+    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  17
+    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  18
+    <SilverlightApplication>true</SilverlightApplication>
  19
+    <SupportedCultures>
  20
+    </SupportedCultures>
  21
+    <XapOutputs>true</XapOutputs>
  22
+    <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
  23
+    <XapFilename>Wp7VorbisTest.xap</XapFilename>
  24
+    <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
  25
+    <SilverlightAppEntry>Wp7VorbisTest.App</SilverlightAppEntry>
  26
+    <ValidateXaml>true</ValidateXaml>
  27
+    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
  28
+  </PropertyGroup>
  29
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  30
+    <DebugSymbols>true</DebugSymbols>
  31
+    <DebugType>full</DebugType>
  32
+    <Optimize>false</Optimize>
  33
+    <OutputPath>Bin\Debug</OutputPath>
  34
+    <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  35
+    <NoStdLib>true</NoStdLib>
  36
+    <NoConfig>true</NoConfig>
  37
+    <ErrorReport>prompt</ErrorReport>
  38
+    <WarningLevel>4</WarningLevel>
  39
+  </PropertyGroup>
  40
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  41
+    <DebugType>pdbonly</DebugType>
  42
+    <Optimize>true</Optimize>
  43
+    <OutputPath>Bin\Release</OutputPath>
  44
+    <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  45
+    <NoStdLib>true</NoStdLib>
  46
+    <NoConfig>true</NoConfig>
  47
+    <ErrorReport>prompt</ErrorReport>
  48
+    <WarningLevel>4</WarningLevel>
  49
+  </PropertyGroup>
  50
+  <ItemGroup>
  51
+    <Reference Include="Microsoft.Phone" />
  52
+    <Reference Include="Microsoft.Phone.Interop" />
  53
+    <Reference Include="System.Windows" />
  54
+    <Reference Include="system" />
  55
+    <Reference Include="System.Core" />
  56
+    <Reference Include="System.Net" />
  57
+    <Reference Include="System.Xml" />
  58
+    <Reference Include="mscorlib.extensions" />
  59
+  </ItemGroup>
  60
+  <ItemGroup>
  61
+    <Compile Include="App.xaml.cs">
  62
+      <DependentUpon>App.xaml</DependentUpon>
  63
+    </Compile>
  64
+    <Compile Include="MainPage.xaml.cs">
  65
+      <DependentUpon>MainPage.xaml</DependentUpon>
  66
+    </Compile>
  67
+    <Compile Include="Properties\AssemblyInfo.cs" />
  68
+  </ItemGroup>
  69
+  <ItemGroup>
  70
+    <ApplicationDefinition Include="App.xaml">
  71
+      <SubType>Designer</SubType>
  72
+      <Generator>MSBuild:Compile</Generator>
  73
+    </ApplicationDefinition>
  74
+    <Page Include="MainPage.xaml">
  75
+      <SubType>Designer</SubType>
  76
+      <Generator>MSBuild:Compile</Generator>
  77
+    </Page>
  78
+  </ItemGroup>
  79
+  <ItemGroup>
  80
+    <None Include="Properties\AppManifest.xml" />
  81
+    <None Include="Properties\WMAppManifest.xml" />
  82
+  </ItemGroup>
  83
+  <ItemGroup>
  84
+    <Content Include="ApplicationIcon.png">
  85
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  86
+    </Content>
  87
+    <Content Include="Background.png">
  88
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  89
+    </Content>
  90
+    <Content Include="SplashScreenImage.jpg" />
  91
+  </ItemGroup>
  92
+  <ItemGroup>
  93
+    <ProjectReference Include="..\csogg\csogg.wp7.csproj">
  94
+      <Project>{97C3C47A-979D-4CBD-A811-7B45A70E562D}</Project>
  95
+      <Name>csogg.wp7</Name>
  96
+    </ProjectReference>
  97
+    <ProjectReference Include="..\csvorbis\csvorbis.wp7.csproj">
  98
+      <Project>{ED1B1BBB-E5A5-4DD8-B6A5-C247FE782615}</Project>
  99
+      <Name>csvorbis.wp7</Name>
  100
+    </ProjectReference>
  101
+    <ProjectReference Include="..\MoonVorbis\WP7Vorbis.csproj">
  102
+      <Project>{307DDA08-A47F-498A-B680-B0F946E30E1A}</Project>
  103
+      <Name>WP7Vorbis</Name>
  104
+    </ProjectReference>
  105
+  </ItemGroup>
  106
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
  107
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
  108
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
  109
+       Other similar extension points exist, see Microsoft.Common.targets.
  110
+  <Target Name="BeforeBuild">
  111
+  </Target>
  112
+  <Target Name="AfterBuild">
  113
+  </Target>
  114
+  -->
  115
+  <ProjectExtensions />
  116
+</Project>
72  csvorbis/csogg/csogg.wp7.csproj
... ...
@@ -0,0 +1,72 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3
+  <PropertyGroup>
  4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  5
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  6
+    <ProductVersion>10.0.20506</ProductVersion>
  7
+    <SchemaVersion>2.0</SchemaVersion>
  8
+    <ProjectGuid>{97C3C47A-979D-4CBD-A811-7B45A70E562D}</ProjectGuid>
  9
+    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
  10
+    <OutputType>Library</OutputType>
  11
+    <AppDesignerFolder>Properties</AppDesignerFolder>
  12
+    <RootNamespace>csogg.wp7</RootNamespace>
  13
+    <AssemblyName>csogg.wp7</AssemblyName>
  14
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  15
+    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  16
+    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  17
+    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  18
+    <SilverlightApplication>false</SilverlightApplication>
  19
+    <ValidateXaml>true</ValidateXaml>
  20
+    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
  21
+  </PropertyGroup>
  22
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  23
+    <DebugSymbols>true</DebugSymbols>
  24
+    <DebugType>full</DebugType>
  25
+    <Optimize>false</Optimize>
  26
+    <OutputPath>Bin\Debug</OutputPath>
  27
+    <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  28
+    <NoStdLib>true</NoStdLib>
  29
+    <NoConfig>true</NoConfig>
  30
+    <ErrorReport>prompt</ErrorReport>
  31
+    <WarningLevel>4</WarningLevel>
  32
+  </PropertyGroup>
  33
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  34
+    <DebugType>pdbonly</DebugType>
  35
+    <Optimize>true</Optimize>
  36
+    <OutputPath>Bin\Release</OutputPath>
  37
+    <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  38
+    <NoStdLib>true</NoStdLib>
  39
+    <NoConfig>true</NoConfig>
  40
+    <ErrorReport>prompt</ErrorReport>
  41
+    <WarningLevel>4</WarningLevel>
  42
+  </PropertyGroup>
  43
+  <ItemGroup>
  44
+    <Reference Include="System.Windows" />
  45
+    <Reference Include="system" />
  46
+    <Reference Include="System.Core" />
  47
+    <Reference Include="System.Xml" />
  48
+    <Reference Include="System.Net" />
  49
+    <Reference Include="mscorlib.extensions" />
  50
+  </ItemGroup>
  51
+  <ItemGroup>
  52
+    <Compile Include="AssemblyInfo.cs" />
  53
+    <Compile Include="Buffer.cs" />
  54
+    <Compile Include="Packet.cs" />
  55
+    <Compile Include="Page.cs" />
  56
+    <Compile Include="StreamState.cs" />
  57
+    <Compile Include="SyncState.cs" />
  58
+  </ItemGroup>
  59
+  <ItemGroup>
  60
+    <Folder Include="Properties\" />
  61
+  </ItemGroup>
  62
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
  63
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
  64
+  <ProjectExtensions />
  65
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
  66
+       Other similar extension points exist, see Microsoft.Common.targets.
  67
+  <Target Name="BeforeBuild">
  68
+  </Target>
  69
+  <Target Name="AfterBuild">
  70
+  </Target>
  71
+  -->
  72
+</Project>
2  csvorbis/csvorbis/Lsp.cs
@@ -42,7 +42,7 @@ namespace csvorbis
42 42
 	class Lsp
43 43
 	{
44 44
 
45  
-		[StructLayout(LayoutKind.Explicit, Size=32, CharSet=CharSet.Ansi)]
  45
+		[StructLayout(LayoutKind.Explicit, Size=32, CharSet=CharSet.Auto)]
46 46
 		struct FloatHack 
47 47
 		{
48 48
 			[FieldOffset(0)] public float fh_float;
103  csvorbis/csvorbis/csvorbis.wp7.csproj
... ...
@@ -0,0 +1,103 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3
+  <PropertyGroup>
  4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  5
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  6
+    <ProductVersion>10.0.20506</ProductVersion>
  7
+    <SchemaVersion>2.0</SchemaVersion>
  8
+    <ProjectGuid>{ED1B1BBB-E5A5-4DD8-B6A5-C247FE782615}</ProjectGuid>
  9
+    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
  10
+    <OutputType>Library</OutputType>
  11
+    <AppDesignerFolder>Properties</AppDesignerFolder>
  12
+    <RootNamespace>csvorbis.wp7</RootNamespace>
  13
+    <AssemblyName>csvorbis.wp7</AssemblyName>
  14
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  15
+    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  16
+    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  17
+    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  18
+    <SilverlightApplication>false</SilverlightApplication>
  19
+    <ValidateXaml>true</ValidateXaml>
  20
+    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
  21
+  </PropertyGroup>
  22
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  23
+    <DebugSymbols>true</DebugSymbols>
  24
+    <DebugType>full</DebugType>
  25
+    <Optimize>false</Optimize>
  26
+    <OutputPath>Bin\Debug</OutputPath>
  27
+    <DefineConstants>TRACE;DEBUG;SILVERLIGHT;WINDOWS_PHONE;NET_2_1</DefineConstants>
  28
+    <NoStdLib>true</NoStdLib>
  29
+    <NoConfig>true</NoConfig>
  30
+    <ErrorReport>prompt</ErrorReport>
  31
+    <WarningLevel>4</WarningLevel>
  32
+  </PropertyGroup>
  33
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  34
+    <DebugType>pdbonly</DebugType>
  35
+    <Optimize>true</Optimize>
  36
+    <OutputPath>Bin\Release</OutputPath>
  37
+    <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
  38
+    <NoStdLib>true</NoStdLib>
  39
+    <NoConfig>true</NoConfig>
  40
+    <ErrorReport>prompt</ErrorReport>
  41
+    <WarningLevel>4</WarningLevel>
  42
+  </PropertyGroup>
  43
+  <ItemGroup>
  44
+    <Reference Include="System.Windows" />
  45
+    <Reference Include="system" />
  46
+    <Reference Include="System.Core" />
  47
+    <Reference Include="System.Xml" />
  48
+    <Reference Include="System.Net" />
  49
+    <Reference Include="mscorlib.extensions" />
  50
+  </ItemGroup>
  51
+  <ItemGroup>
  52
+    <Folder Include="Properties\" />
  53
+  </ItemGroup>
  54
+  <ItemGroup>
  55
+    <Compile Include="AllocChain.cs" />
  56
+    <Compile Include="AssemblyInfo.cs" />
  57
+    <Compile Include="Block.cs" />
  58
+    <Compile Include="CodeBook.cs" />
  59
+    <Compile Include="Comment.cs" />
  60
+    <Compile Include="csorbisException.cs" />
  61
+    <Compile Include="Drft.cs" />
  62
+    <Compile Include="DspState.cs" />
  63
+    <Compile Include="EncodeAuxNearestMatch.cs" />
  64
+    <Compile Include="EncodeAuxThreshMatch.cs" />
  65
+    <Compile Include="Floor0.cs" />
  66
+    <Compile Include="Floor1.cs" />
  67
+    <Compile Include="FuncFloor.cs" />
  68
+    <Compile Include="FuncMapping.cs" />
  69
+    <Compile Include="FuncResidue.cs" />
  70
+    <Compile Include="FuncTime.cs" />
  71
+    <Compile Include="Info.cs" />
  72
+    <Compile Include="InfoMode.cs" />
  73
+    <Compile Include="Lookup.cs" />
  74
+    <Compile Include="Lpc.cs" />
  75
+    <Compile Include="Lsp.cs" />
  76
+    <Compile Include="Mapping0.cs" />
  77
+    <Compile Include="Mdct.cs" />
  78
+    <Compile Include="PsyInfo.cs" />
  79
+    <Compile Include="PsyLook.cs" />
  80
+    <Compile Include="Residue0.cs" />
  81
+    <Compile Include="Residue1.cs" />
  82
+    <Compile Include="Residue2.cs" />
  83
+    <Compile Include="StaticCodeBook.cs" />
  84
+    <Compile Include="Time0.cs" />
  85
+    <Compile Include="VorbisFile.cs" />
  86
+  </ItemGroup>
  87
+  <ItemGroup>
  88
+    <ProjectReference Include="..\csogg\csogg.wp7.csproj">
  89
+      <Project>{97C3C47A-979D-4CBD-A811-7B45A70E562D}</Project>
  90
+      <Name>csogg.wp7</Name>
  91
+    </ProjectReference>
  92
+  </ItemGroup>
  93
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
  94
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
  95
+  <ProjectExtensions />
  96
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
  97
+       Other similar extension points exist, see Microsoft.Common.targets.
  98
+  <Target Name="BeforeBuild">
  99
+  </Target>
  100
+  <Target Name="AfterBuild">
  101
+  </Target>
  102
+  -->
  103
+</Project>
44  csvorbis/moonvorbis.sln
... ...
@@ -1,6 +1,6 @@
1 1
 
2  
-Microsoft Visual Studio Solution File, Format Version 10.00
3  
-# Visual Studio 2008
  2
+Microsoft Visual Studio Solution File, Format Version 11.00
  3
+# Visual Studio 2010
4 4
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MoonVorbis", "MoonVorbis\MoonVorbis.csproj", "{0312578E-A085-4437-9961-3FDA981EE873}"
5 5
 EndProject
6 6
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csogg.moonlight", "csogg\csogg.moonlight.csproj", "{CF53CC22-A7C6-4889-8A8D-07C3862966CF}"
@@ -9,6 +9,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MoonVorbisTest", "MoonVorbi
9 9
 EndProject
10 10
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csvorbis.moonlight", "csvorbis\csvorbis.moonlight.csproj", "{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}"
11 11
 EndProject
  12
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csogg.wp7", "csogg\csogg.wp7.csproj", "{97C3C47A-979D-4CBD-A811-7B45A70E562D}"
  13
+EndProject
  14
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csvorbis.wp7", "csvorbis\csvorbis.wp7.csproj", "{ED1B1BBB-E5A5-4DD8-B6A5-C247FE782615}"
  15
+EndProject
  16
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WP7Vorbis", "MoonVorbis\WP7Vorbis.csproj", "{307DDA08-A47F-498A-B680-B0F946E30E1A}"
  17
+EndProject
  18
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WP7VorbisTest", "Wp7VorbisTest\WP7VorbisTest.csproj", "{90734433-D9B5-4FD5-B6CA-770230C0EF1C}"
  19
+EndProject
12 20
 Global
13 21
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 22
 		Debug|Any CPU = Debug|Any CPU
@@ -19,10 +27,6 @@ Global
19 27
 		{0312578E-A085-4437-9961-3FDA981EE873}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 28
 		{0312578E-A085-4437-9961-3FDA981EE873}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 29
 		{0312578E-A085-4437-9961-3FDA981EE873}.Release|Any CPU.Build.0 = Release|Any CPU
22  
-		{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23  
-		{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}.Debug|Any CPU.Build.0 = Debug|Any CPU
24  
-		{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}.Release|Any CPU.ActiveCfg = Release|Any CPU
25  
-		{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}.Release|Any CPU.Build.0 = Release|Any CPU
26 30
 		{CF53CC22-A7C6-4889-8A8D-07C3862966CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 31
 		{CF53CC22-A7C6-4889-8A8D-07C3862966CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 32
 		{CF53CC22-A7C6-4889-8A8D-07C3862966CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -31,11 +35,33 @@ Global
31 35
 		{D78FC340-443B-4F0C-8ED0-49B9BDFC9988}.Debug|Any CPU.Build.0 = Debug|Any CPU
32 36
 		{D78FC340-443B-4F0C-8ED0-49B9BDFC9988}.Release|Any CPU.ActiveCfg = Release|Any CPU
33 37
 		{D78FC340-443B-4F0C-8ED0-49B9BDFC9988}.Release|Any CPU.Build.0 = Release|Any CPU
34  
-	EndGlobalSection
35  
-	GlobalSection(MonoDevelopProperties) = preSolution
36  
-		StartupItem = MoonVorbisTest\MoonVorbisTest.csproj
  38
+		{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  39
+		{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}.Debug|Any CPU.Build.0 = Debug|Any CPU
  40
+		{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}.Release|Any CPU.ActiveCfg = Release|Any CPU
  41
+		{6EA829F5-E5BB-4FF6-81E6-5976B1C3D177}.Release|Any CPU.Build.0 = Release|Any CPU
  42
+		{97C3C47A-979D-4CBD-A811-7B45A70E562D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  43
+		{97C3C47A-979D-4CBD-A811-7B45A70E562D}.Debug|Any CPU.Build.0 = Debug|Any CPU
  44
+		{97C3C47A-979D-4CBD-A811-7B45A70E562D}.Release|Any CPU.ActiveCfg = Release|Any CPU
  45
+		{97C3C47A-979D-4CBD-A811-7B45A70E562D}.Release|Any CPU.Build.0 = Release|Any CPU
  46
+		{ED1B1BBB-E5A5-4DD8-B6A5-C247FE782615}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  47
+		{ED1B1BBB-E5A5-4DD8-B6A5-C247FE782615}.Debug|Any CPU.Build.0 = Debug|Any CPU
  48
+		{ED1B1BBB-E5A5-4DD8-B6A5-C247FE782615}.Release|Any CPU.ActiveCfg = Release|Any CPU
  49
+		{ED1B1BBB-E5A5-4DD8-B6A5-C247FE782615}.Release|Any CPU.Build.0 = Release|Any CPU
  50
+		{307DDA08-A47F-498A-B680-B0F946E30E1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  51
+		{307DDA08-A47F-498A-B680-B0F946E30E1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
  52
+		{307DDA08-A47F-498A-B680-B0F946E30E1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
  53
+		{307DDA08-A47F-498A-B680-B0F946E30E1A}.Release|Any CPU.Build.0 = Release|Any CPU
  54
+		{90734433-D9B5-4FD5-B6CA-770230C0EF1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  55
+		{90734433-D9B5-4FD5-B6CA-770230C0EF1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
  56
+		{90734433-D9B5-4FD5-B6CA-770230C0EF1C}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
  57
+		{90734433-D9B5-4FD5-B6CA-770230C0EF1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
  58
+		{90734433-D9B5-4FD5-B6CA-770230C0EF1C}.Release|Any CPU.Build.0 = Release|Any CPU
  59
+		{90734433-D9B5-4FD5-B6CA-770230C0EF1C}.Release|Any CPU.Deploy.0 = Release|Any CPU
37 60
 	EndGlobalSection
38 61
 	GlobalSection(SolutionProperties) = preSolution
39 62
 		HideSolutionNode = FALSE
40 63
 	EndGlobalSection
  64
+	GlobalSection(MonoDevelopProperties) = preSolution
  65
+		StartupItem = MoonVorbisTest\MoonVorbisTest.csproj
  66
+	EndGlobalSection
41 67
 EndGlobal

0 notes on commit 2155e7f

Please sign in to comment.
Something went wrong with that request. Please try again.