From 9f4369c05d94831927b8cda5ef5a4fc08acf6565 Mon Sep 17 00:00:00 2001 From: "SND\\AstrorEnales_cp" Date: Wed, 10 Oct 2012 10:48:19 +0000 Subject: [PATCH] - Working on implementing the WindowsMediaLibrary via the WMPLib - Implemented nearly all classes in the Media namespace side by side with the Windows implementation - Started adding unit tests to compare the ANX and XNA MediaLibrary behaviour - Merged the ConvertEquals for PackedVectors to a single method that does the job equally good --- ...NX.Framework.Content.Pipeline_Linux.csproj | 13 +- ...X.Framework.Content.Pipeline_PSVita.csproj | 12 +- ...ework.Content.Pipeline_WindowsMetro.csproj | 12 +- .../ANX.Framework.TestCenter.csproj | 6 +- .../ANX.Framework.TestCenter_Linux.csproj | 6 +- .../ANX.Framework.TestCenter_PSVita.csproj | 6 +- ...X.Framework.TestCenter_WindowsMetro.csproj | 6 +- ANX.Framework.TestCenter/AssertHelper.cs | 261 +-------------- .../Graphics/PackedVector/Alpha8Test.cs | 2 +- .../Graphics/PackedVector/Bgr565Test.cs | 4 +- .../Graphics/PackedVector/Bgra4444Test.cs | 4 +- .../Graphics/PackedVector/Bgra5551Test.cs | 4 +- .../Graphics/PackedVector/Byte4Test.cs | 4 +- .../Graphics/PackedVector/HalfSingleTest.cs | 2 +- .../Graphics/PackedVector/HalfVector2Test.cs | 4 +- .../Graphics/PackedVector/HalfVector4Test.cs | 4 +- .../PackedVector/NormalizedByte2Test.cs | 4 +- .../PackedVector/NormalizedByte4Test.cs | 4 +- .../PackedVector/NormalizedShort2Test.cs | 4 +- .../PackedVector/NormalizedShort4Test.cs | 4 +- .../Graphics/PackedVector/Rg32Test.cs | 4 +- .../Graphics/PackedVector/Rgba1010102Test.cs | 4 +- .../Graphics/PackedVector/Rgba64Test.cs | 4 +- .../Graphics/PackedVector/Short2Test.cs | 4 +- .../Graphics/PackedVector/Short4Test.cs | 4 +- .../Strukturen/Media/MediaLibraryTests.cs | 98 ++++++ ANX.Framework/Media/Album.cs | 171 ++++------ ANX.Framework/Media/AlbumCollection.cs | 38 +-- ANX.Framework/Media/Artist.cs | 128 +++----- ANX.Framework/Media/ArtistCollection.cs | 8 +- ANX.Framework/Media/Genre.cs | 128 +++----- ANX.Framework/Media/GenreCollection.cs | 8 +- ANX.Framework/Media/MediaQueue.cs | 2 +- ANX.Framework/Media/MediaSourceType.cs | 4 + ANX.Framework/Media/MediaState.cs | 4 + ANX.Framework/Media/Picture.cs | 162 ++++------ ANX.Framework/Media/PictureAlbum.cs | 137 +++----- ANX.Framework/Media/PictureAlbumCollection.cs | 36 +-- ANX.Framework/Media/PictureCollection.cs | 38 +-- ANX.Framework/Media/Playlist.cs | 78 ++--- ANX.Framework/Media/PlaylistCollection.cs | 39 +-- ANX.Framework/Media/Song.cs | 159 +++++---- ANX.Framework/Media/SongCollection.cs | 4 + ANX.Framework/Media/Video.cs | 4 + ANX.Framework/Media/VideoPlayer.cs | 4 + ANX.Framework/Media/VideoSoundtrackType.cs | 4 + ANX.Framework/Media/VisualizationData.cs | 4 + .../ANX.PlatformSystem.Windows_Linux.csproj | 12 + .../ANX.PlatformSystem.Windows_PSVita.csproj | 12 + ...PlatformSystem.Windows_WindowsMetro.csproj | 12 + .../WindowsMediaLibrary.cs | 306 +++++++++++++++--- .../ANX.SoundSystem.OpenAL/Creator.cs | 4 +- .../ANX.SoundSystem.OpenAL/OpenALSong.cs | 29 +- .../XAudioSong.cs | 19 +- 54 files changed, 945 insertions(+), 1093 deletions(-) create mode 100644 ANX.Framework.TestCenter/Strukturen/Media/MediaLibraryTests.cs diff --git a/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_Linux.csproj b/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_Linux.csproj index af1f193d..89b1bcb2 100644 --- a/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_Linux.csproj +++ b/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_Linux.csproj @@ -10,27 +10,26 @@ Properties ANX.Framework.Content.Pipeline ANX.Framework.Content.Pipeline - v4.0 512 - true + True full - false + False bin\Debug\ TRACE;DEBUG;LINUX; prompt 4 - true + True pdbonly - true + True bin\Release\ TRACE;LINUX; prompt 4 - true + True @@ -186,7 +185,9 @@ + + diff --git a/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_PSVita.csproj b/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_PSVita.csproj index 0b2064cb..3386f47b 100644 --- a/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_PSVita.csproj +++ b/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_PSVita.csproj @@ -14,23 +14,23 @@ {69878862-DA7D-4DC6-B0A1-50D8FAB4242F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - true + True full - false + False bin\Debug\ TRACE;DEBUG;PSVITA; prompt 4 - true + True pdbonly - true + True bin\Release\ TRACE;PSVITA; prompt 4 - true + True @@ -187,7 +187,9 @@ + + diff --git a/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_WindowsMetro.csproj b/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_WindowsMetro.csproj index 55c0f85a..55b3b21a 100644 --- a/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_WindowsMetro.csproj +++ b/ANX.Framework.Content.Pipeline/ANX.Framework.Content.Pipeline_WindowsMetro.csproj @@ -16,23 +16,23 @@ Test_TemporaryKey.pfx - true + True full - false + False bin\Debug\ModernUI TRACE;DEBUG;WINDOWSMETRO; prompt 4 - true + True pdbonly - true + True bin\Release\ModernUI TRACE;WINDOWSMETRO; prompt 4 - true + True @@ -188,7 +188,9 @@ + + diff --git a/ANX.Framework.TestCenter/ANX.Framework.TestCenter.csproj b/ANX.Framework.TestCenter/ANX.Framework.TestCenter.csproj index bcc8f846..2c448b5a 100644 --- a/ANX.Framework.TestCenter/ANX.Framework.TestCenter.csproj +++ b/ANX.Framework.TestCenter/ANX.Framework.TestCenter.csproj @@ -74,6 +74,7 @@ + @@ -118,7 +119,6 @@ - @@ -142,6 +142,10 @@ {068EB2E9-963C-4E1B-8831-E25011F11FFE} ANX.PlatformSystem.Windows + + {6A582788-C4D2-410C-96CD-177F75712D65} + ANX.SoundSystem.Windows.XAudio +