• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision9f82478dc42aa591164a7c94559a51c34603d86f (tree)
Zeit2021-10-05 01:20:20
Autoryyagi <yyagi.dtxmania@gmai...>
Commiteryyagi

Log Message

#37271 BASSThreadedMixerへのwrapperコードを削除。

Ändern Zusammenfassung

  • delete: "FDK/\343\202\263\343\203\274\343\203\211/03.\343\202\265\343\202\246\343\203\263\343\203\211/BASSThreadedMixerWrapper.cs"

Diff

--- "a/FDK/\343\202\263\343\203\274\343\203\211/03.\343\202\265\343\202\246\343\203\263\343\203\211/BASSThreadedMixerWrapper.cs"
+++ /dev/null
@@ -1,119 +0,0 @@
1-using System;
2-using System.Collections.Generic;
3-using System.Linq;
4-using System.Text;
5-using System.Threading.Tasks;
6-using System.Runtime.InteropServices;
7-using System.Diagnostics;
8-
9-namespace FDK
10-{
11- public unsafe class BASSThreadedMixerLibraryWrapper
12- {
13-
14- //* Parameters
15- public static readonly int BASSTM_PARAMETER_NO_THREAD_FOR_1_SOURCE = 1; //* Default = True
16- public static readonly int BASSTM_PARAMETER_THREADS_PRIORITY = 2; //* Affects only sources added after setting this parameter
17- public static readonly int BASSTM_THREADS_PRIORITY_Idle = 0;
18- public static readonly int BASSTM_THREADS_PRIORITY_Lowest = 1;
19- public static readonly int BASSTM_THREADS_PRIORITY_Lower = 2;
20- public static readonly int BASSTM_THREADS_PRIORITY_Normal = 3;
21- public static readonly int BASSTM_THREADS_PRIORITY_Higher = 4; //* Default
22- public static readonly int BASSTM_THREADS_PRIORITY_Highest = 5;
23- public static readonly int BASSTM_THREADS_PRIORITY_TimeCritical = 6;
24-
25- //* .dll file name
26- public static readonly string FILENAME_DLL_BASS_THREADED_MIXER_LIBRARY = @"dll\BASSThreadedMixer.dll";
27- //public static readonly int BASSARLIBCALL __stdcall
28- //public static readonly int GETBASSTMLIBFUNCTION(f) *((void**)&f) = GetProcAddress(BASSThreadedMixerLibraryDLLHandle, #f)
29-
30-
31- #region [DllImport]
32- [DllImport("kernel32", CharSet = CharSet.Unicode, SetLastError = true)]
33- internal static extern void FreeLibrary(IntPtr hModule);
34-
35- [DllImport("kernel32", CharSet = CharSet.Unicode, SetLastError = true)]
36- internal static extern IntPtr LoadLibrary(string lpFileName);
37- #endregion
38-
39- #region [ BASSThreadedMixer.dll インポート ]
40- //-----------------
41- [return: MarshalAs(UnmanagedType.U4)]
42- [DllImport("BASSThreadedMixer.dll", EntryPoint = "BASS_ThreadedMixer_Create", CallingConvention = CallingConvention.StdCall)]
43- public static extern Int32 BASS_ThreadedMixer_Create(Int32 Freq, Int32 Chans, Int32 Flags, out IntPtr ThreadedMixerHandle);
44-
45- [return: MarshalAs(UnmanagedType.Bool)]
46- [DllImport("BASSThreadedMixer.dll", EntryPoint = "BASS_ThreadedMixer_AddSource", CallingConvention = CallingConvention.StdCall)]
47- public static extern bool BASS_ThreadedMixer_AddSource(IntPtr ThreadedMixerHandle, Int32 SourceChannel, IntPtr Matrix);
48- [return: MarshalAs(UnmanagedType.Bool)]
49- [DllImport("BASSThreadedMixer.dll", EntryPoint = "BASS_ThreadedMixer_RemoveSource", CallingConvention = CallingConvention.StdCall)]
50- public static extern bool BASS_ThreadedMixer_RemoveSource(IntPtr ThreadedMixerHandle, Int32 SourceChannel);
51- [return: MarshalAs(UnmanagedType.Bool)]
52- [DllImport("BASSThreadedMixer.dll", EntryPoint = "BASS_ThreadedMixer_SetMatrix", CallingConvention = CallingConvention.StdCall)]
53- public static extern bool BASS_ThreadedMixer_SetMatrix(IntPtr ThreadedMixerHandle, Int32 SourceChannel, IntPtr Matrix, Single FadeTime);
54- [return: MarshalAs(UnmanagedType.Bool)]
55- [DllImport("BASSThreadedMixer.dll", EntryPoint = "BASS_ThreadedMixer_SetParameter", CallingConvention = CallingConvention.StdCall)]
56- public static extern bool BASS_ThreadedMixer_SetParameter(IntPtr ThreadedMixerHandle, Int32 Parameter, Int32 Value);
57-
58- //typedef DWORD(BASSARLIBCALL* t_BASS_ThreadedMixer_Create)(DWORD Freq, DWORD Chans, DWORD Flags, HBASSTM* ThreadedMixerHandle);
59- //typedef BOOL(BASSARLIBCALL* t_BASS_ThreadedMixer_AddSource)(HBASSTM ThreadedMixerHandle, DWORD SourceChannel, void* Matrix);
60- //typedef BOOL(BASSARLIBCALL* t_BASS_ThreadedMixer_RemoveSource)(HBASSTM ThreadedMixerHandle, DWORD SourceChannel);
61- //typedef BOOL(BASSARLIBCALL* t_BASS_ThreadedMixer_SetMatrix)(HBASSTM ThreadedMixerHandle, DWORD SourceChannel, void* Matrix, float FadeTime);
62- //typedef BOOL(BASSARLIBCALL* t_BASS_ThreadedMixer_SetParameter)(HBASSTM ThreadedMixerHandle, DWORD Parameter, int Value);
63-
64- //-----------------
65- #endregion
66-
67-
68- private static IntPtr BASSThreadedMixerLibraryDLLHandle;
69-
70- public static bool InitBASSThreadedMixerLibrary()
71- {
72- //#if _WIN32
73- BASSThreadedMixerLibraryDLLHandle = LoadLibrary(FILENAME_DLL_BASS_THREADED_MIXER_LIBRARY);
74- //#else //* OSX
75- //BASSThreadedMixerLibraryDLLHandle = dlopen(FILENAME_DLL_BASS_THREADED_MIXER_LIBRARY, RTLD_NOW);
76- //#endif
77-
78- if (null != BASSThreadedMixerLibraryDLLHandle)
79- {
80- throw new Exception("BASSThreadedMixer.dllの組み込みに失敗しました。");
81-
82- //GETBASSTMLIBFUNCTION(BASS_ThreadedMixer_Create);
83- //GETBASSTMLIBFUNCTION(BASS_ThreadedMixer_AddSource);
84- //GETBASSTMLIBFUNCTION(BASS_ThreadedMixer_RemoveSource);
85- //GETBASSTMLIBFUNCTION(BASS_ThreadedMixer_SetMatrix);
86- //GETBASSTMLIBFUNCTION(BASS_ThreadedMixer_SetParameter);
87-
88- //if ((NULL == BASS_ThreadedMixer_Create)
89- // || (NULL == BASS_ThreadedMixer_AddSource)
90- // || (NULL == BASS_ThreadedMixer_RemoveSource)
91- // || (NULL == BASS_ThreadedMixer_SetMatrix)
92- // || (NULL == BASS_ThreadedMixer_SetParameter)
93- // )
94- //{
95- // BASSThreadedMixerLibraryDLLLoaded = FALSE;
96- //}
97- //else
98- //{
99- // BASSThreadedMixerLibraryDLLLoaded = TRUE;
100- //}
101- }
102-
103- return true;
104- }
105-
106- public static bool FreeBASSThreadedMixerLibrary()
107- {
108- if (null != BASSThreadedMixerLibraryDLLHandle)
109- {
110-//# ifdef _WIN32
111- FreeLibrary(BASSThreadedMixerLibraryDLLHandle);
112-//#else //* OSX
113-// BASSThreadedMixerLibraryDLLLoaded = dlclose(BASSThreadedMixerLibraryDLLHandle);
114-//#endif
115- }
116- return true;
117- }
118- }
119-}