// DLLImport to Initialize FMOD
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Init", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern bool FMOD_init(int mixrate, int maxsoftwarechannels, int flags);
// DLL Import to get the length of a stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_GetLength", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern int FMOD_getLength(IntPtr fstream);
// DLL Import to get the current position of the stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_GetPosition", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern UInt32 FMOD_getPosition(IntPtr fstream);
// DLL Import to open a stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_Open", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern IntPtr FMOD_open(IntPtr data, int mode, int offset, int length);
// DLL Import to start playing from the stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_Play", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern int FMOD_play(int channel, IntPtr fstream);
// DLL Import to set the position of the stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_SetPosition", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern bool FMOD_setPosition(IntPtr fstream, UInt32 position);
// DLL Import to stop playing the stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_Stop", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern bool FMOD_stop(IntPtr fstream);
// DLL Import to close FMOD and release resources
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Close", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern void FMOD_close();
1246244818_Source_and_dll.zip
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Init", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern bool FMOD_init(int mixrate, int maxsoftwarechannels, int flags);
// DLL Import to get the length of a stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_GetLength", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern int FMOD_getLength(IntPtr fstream);
// DLL Import to get the current position of the stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_GetPosition", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern UInt32 FMOD_getPosition(IntPtr fstream);
// DLL Import to open a stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_Open", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern IntPtr FMOD_open(IntPtr data, int mode, int offset, int length);
// DLL Import to start playing from the stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_Play", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern int FMOD_play(int channel, IntPtr fstream);
// DLL Import to set the position of the stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_SetPosition", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern bool FMOD_setPosition(IntPtr fstream, UInt32 position);
// DLL Import to stop playing the stream
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Stream_Stop", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern bool FMOD_stop(IntPtr fstream);
// DLL Import to close FMOD and release resources
[DllImport("fmodex.dll", EntryPoint = "FSOUND_Close", SetLastError = true, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]
public static extern void FMOD_close();
1246244818_Source_and_dll.zip
'스마트 장치 개발' 카테고리의 다른 글
file dialog for C# (0) | 2009.12.16 |
---|---|
SmartPhone에서 FolderBrowserDialog을 처리하기 위한 방법(DocumentList Control) (0) | 2009.12.12 |
영어단어 암기 프로그램 (11) | 2009.07.07 |
C#에서 aygshell.dll 사용 방법 (0) | 2009.06.29 |
PocketPC에서 세로보기/가로보기 확인 방법 (0) | 2008.10.23 |