[banshee/gst#: 1/2] [gst#] Skeleton for gstreamer-sharp backend



commit 35aec1b937020c3b3142be0a5a3580dba10758ea
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Sat Mar 13 13:27:28 2010 -0800

    [gst#] Skeleton for gstreamer-sharp backend

 Banshee.sln                                        |    9 +++
 configure.ac                                       |    1 +
 .../Banshee.GStreamerSharp.addin.xml               |   38 ++++++++++++++
 .../Banshee.GStreamerSharp.csproj                  |    1 +
 .../Banshee.GStreamerSharp/PlayerEngine.cs         |   54 ++++++++++++++++++++
 src/Backends/Banshee.GStreamerSharp/Makefile.am    |   14 +++++
 .../Banshee.ThickClient/Banshee.ThickClient.csproj |    3 +-
 7 files changed, 119 insertions(+), 1 deletions(-)
---
diff --git a/Banshee.sln b/Banshee.sln
index 52885cb..6b6b1d4 100644
--- a/Banshee.sln
+++ b/Banshee.sln
@@ -56,6 +56,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Banshee.NowPlaying.X11", "s
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Banshee.Osx", "src\Backends\Banshee.Osx\Banshee.Osx.csproj", "{379034DF-F34D-409B-8DE9-097BE78E37C8}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Banshee.GStreamerSharp", "src\Backends\Banshee.GStreamerSharp\Banshee.GStreamerSharp.csproj", "{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB}"
+EndProject
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dap", "Dap", "{057215DF-2773-4B42-8B8A-64F2CF7764F2}"
 	ProjectSection(SolutionItems) = postProject
 	EndProjectSection
@@ -317,6 +319,12 @@ Global
 		{B574AEB0-59F1-4FB7-A91A-8E5A651970CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{B574AEB0-59F1-4FB7-A91A-8E5A651970CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{B574AEB0-59F1-4FB7-A91A-8E5A651970CE}.Windows|Any CPU.ActiveCfg = Windows|Any CPU
+		{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB}.Release|Any CPU.Build.0 = Release|Any CPU
+		{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB}.Windows|Any CPU.ActiveCfg = Debug|Any CPU
+		{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB}.Windows|Any CPU.Build.0 = Debug|Any CPU
 		{BB1D1D81-7A74-4183-B7B1-3E78B32D42F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{BB1D1D81-7A74-4183-B7B1-3E78B32D42F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{BB1D1D81-7A74-4183-B7B1-3E78B32D42F1}.Windows|Any CPU.ActiveCfg = Windows|Any CPU
@@ -406,6 +414,7 @@ Global
 		{3B7DD288-5546-4907-B302-0CD0271D9713} = {A03B194F-F644-4E95-A602-87200029240D}
 		{46C02D13-5ED4-4A14-9ACF-125B1E4B6EB5} = {A03B194F-F644-4E95-A602-87200029240D}
 		{379034DF-F34D-409B-8DE9-097BE78E37C8} = {A03B194F-F644-4E95-A602-87200029240D}
+		{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB} = {A03B194F-F644-4E95-A602-87200029240D}
 		{BC2E94DF-7A82-461E-BE7C-60E41ADC3562} = {057215DF-2773-4B42-8B8A-64F2CF7764F2}
 		{6B73E278-23FB-4A59-9B44-AB7F0212B936} = {057215DF-2773-4B42-8B8A-64F2CF7764F2}
 		{3935AE8A-E283-4C0D-9094-7435A937DC90} = {057215DF-2773-4B42-8B8A-64F2CF7764F2}
diff --git a/configure.ac b/configure.ac
index 265582a..c2d63b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -272,6 +272,7 @@ src/Backends/Makefile
 src/Backends/Banshee.Gio/Makefile
 src/Backends/Banshee.Gnome/Makefile
 src/Backends/Banshee.GStreamer/Makefile
+src/Backends/Banshee.GStreamerSharp/Makefile
 src/Backends/Banshee.Hal/Makefile
 src/Backends/Banshee.Unix/Makefile
 src/Backends/Banshee.Osx/Makefile
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.addin.xml b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.addin.xml
new file mode 100644
index 0000000..9da20c3
--- /dev/null
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.addin.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Addin 
+    id="Banshee.GStreamerSharp"
+    version="1.0"
+    compatVersion="1.0"
+    copyright="© 2010 Novell Inc. Licensed under the MIT X11 license."
+    category="required:Backends"
+    description="GStreamer multimedia services including playback, CD ripping, and transcoding."
+    defaultEnabled="true">
+ 
+  <Dependencies>
+    <Addin id="Banshee.Services" version="1.0" />
+  </Dependencies>
+
+  <!--
+  <Extension path="/Banshee/ServiceManager/Service">
+    <Service class="Banshee.GStreamer.Service"/>
+</Extension> -->
+  
+  <Extension path="/Banshee/MediaEngine/PlayerEngine">
+    <PlayerEngine class="Banshee.GStreamerSharp.PlayerEngine"/>
+  </Extension>
+  
+  <!--
+  <Extension path="/Banshee/MediaEngine/AudioCdRipper">
+    <AudioCdRipper class="Banshee.GStreamer.AudioCdRipper"/>
+  </Extension>
+
+  <Extension path="/Banshee/MediaEngine/Transcoder">
+    <Transcoder class="Banshee.GStreamer.Transcoder"/>
+  </Extension>
+
+  <Extension path="/Banshee/MediaEngine/BpmDetector">
+    <BpmDetector class="Banshee.GStreamer.BpmDetector"/>
+  </Extension>
+  -->
+
+</Addin>
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.csproj b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.csproj
new file mode 100644
index 0000000..784608f
--- /dev/null
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.csproj
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="utf-8"?><Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>  <PropertyGroup>    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>    <ProductVersion>9.0.21022</ProductVersion>    <SchemaVersion>2.0</SchemaVersion>    <ProjectGuid>{BA67DA42-F0DA-4D64-BD8B-22F30C727BAB}</ProjectGuid>    <OutputType>Library</OutputType>    <RootNamespace>Banshee.GStreamerSharp</RootNamespace>    <ReleaseVersion>1.3</ReleaseVersion>    <AssemblyName>Banshee.GStreamerSharp</AssemblyName>    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>  </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>none</DebugType>    <Optimize>false</Optimize>    <OutputPath>bin\Release</OutputPath>    <ErrorReport>prompt</ErrorReport>    <WarningLevel>4</WarningLevel>    <ConsolePause>false</ConsolePause>  </PropertyGroup>  <ItemGroup>    <Reference Include="System" />    <Reference Include="gstreamer-sharp, Version=0.9.3.0, Culture=neutral, PublicKeyToken=4956b48baf980190" />    <Reference Include="System.Core" />    <Reference Include="Mono.Posix" />  </ItemGroup>  <ItemGroup>    <ProjectReference Include="..\..\Core\Banshee.Services\Banshee.Services.csproj">      <Project>{B28354F0-BA87-44E8-989F-B864A3C7C09F}</Project>      <Name>Banshee.Services</Name>    </ProjectReference>    <ProjectReference Include="..\..\Libraries
 \Hyena\Hyena.csproj">      <Project>{95374549-9553-4C1E-9D89-667755F90E12}</Project>      <Name>Hyena</Name>    </ProjectReference>    <ProjectReference Include="..\..\Core\Banshee.Core\Banshee.Core.csproj">      <Project>{2ADB831A-A050-47D0-B6B9-9C19D60233BB}</Project>      <Name>Banshee.Core</Name>    </ProjectReference>  </ItemGroup>  <ItemGroup>    <EmbeddedResource Include="Banshee.GStreamerSharp.addin.xml" />  </ItemGroup>  <ItemGroup>    <Folder Include="Banshee.GStreamerSharp\" />  </ItemGroup>  <ItemGroup>    <Compile Include="Banshee.GStreamerSharp\PlayerEngine.cs" />  </ItemGroup>  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /></Project>
\ No newline at end of file
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
new file mode 100644
index 0000000..c8f959c
--- /dev/null
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
@@ -0,0 +1,54 @@
+//
+// PlayerEngine.cs
+//
+// Author:
+//   Gabriel Burt <gburt novell com>
+//
+// Copyright (C) 2010 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+using System.Threading;
+
+using Mono.Unix;
+
+using Gst;
+
+using Hyena;
+using Hyena.Data;
+
+using Banshee.Base;
+using Banshee.Streaming;
+using Banshee.MediaEngine;
+using Banshee.ServiceStack;
+using Banshee.Configuration;
+using Banshee.Preferences;
+
+namespace Banshee.GStreamerSharp
+{
+    public class PlayerEngine : Banshee.MediaEngine.PlayerEngine
+    {
+        //override
+    }
+}
diff --git a/src/Backends/Banshee.GStreamerSharp/Makefile.am b/src/Backends/Banshee.GStreamerSharp/Makefile.am
new file mode 100644
index 0000000..d5df468
--- /dev/null
+++ b/src/Backends/Banshee.GStreamerSharp/Makefile.am
@@ -0,0 +1,14 @@
+ASSEMBLY = Banshee.GStreamerSharp
+TARGET = library
+LINK = $(REF_BACKEND_GSTREAMER)
+SOURCES =  \
+	Banshee.GStreamerSharp/PlayerEngine.cs
+
+RESOURCES = Banshee.GStreamerSharp.addin.xml
+INSTALL_DIR = $(BACKENDS_INSTALL_DIR)
+
+include $(top_srcdir)/build/build.mk
+
+if ENABLE_GAPLESS
+BUILD_DEFINES="-define:ENABLE_GAPLESS"
+endif
diff --git a/src/Core/Banshee.ThickClient/Banshee.ThickClient.csproj b/src/Core/Banshee.ThickClient/Banshee.ThickClient.csproj
index 2a6077e..4c58e01 100644
--- a/src/Core/Banshee.ThickClient/Banshee.ThickClient.csproj
+++ b/src/Core/Banshee.ThickClient/Banshee.ThickClient.csproj
@@ -129,7 +129,7 @@
     <Compile Include="Banshee.Collection.Gui\ArtistListView.cs" />
     <Compile Include="Banshee.Collection.Gui\AlbumListView.cs" />
     <Compile Include="Banshee.Collection.Gui\DataViewChildAlbum.cs" />
-	<Compile Include="Banshee.Sources.Gui\SourceView.cs" />
+    <Compile Include="Banshee.Sources.Gui\SourceView.cs" />
     <Compile Include="Banshee.Gui.DragDrop\DragDropTarget.cs" />
     <Compile Include="Banshee.Gui.DragDrop\DragDropUtilities.cs" />
     <Compile Include="Banshee.Gui\IconThemeUtils.cs" />
@@ -272,6 +272,7 @@
     <Compile Include="Banshee.Collection.Gui\CoverArtEditor.cs" />
     <Compile Include="Banshee.Collection.Gui\SearchableListView.cs" />
     <Compile Include="Banshee.Gui.Widgets\CoverArtDisplay.cs" />
+    <Compile Include="Banshee.CairoGlyphs\BansheeLineLogo.cs" />
   </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
   <ProjectExtensions>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]