aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Input/in_cdda/MAIN.H
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Input/in_cdda/MAIN.H
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Plugins/Input/in_cdda/MAIN.H')
-rw-r--r--Src/Plugins/Input/in_cdda/MAIN.H81
1 files changed, 81 insertions, 0 deletions
diff --git a/Src/Plugins/Input/in_cdda/MAIN.H b/Src/Plugins/Input/in_cdda/MAIN.H
new file mode 100644
index 00000000..0d5dd767
--- /dev/null
+++ b/Src/Plugins/Input/in_cdda/MAIN.H
@@ -0,0 +1,81 @@
+#ifndef NULLSOFT_MAINH
+#define NULLSOFT_MAINH
+#include <windows.h>
+#include <stdio.h>
+#include "../Winamp/in2.h"
+#include "audio.h"
+#include "resource.h"
+#include "PlayStatus.h"
+#include "../nu/AutoLock.h"
+#include <mmsystem.h>
+
+#define WM_WA_MPEG_EOF WM_USER+2
+
+extern In_Module line;
+
+extern volatile int done;
+extern int paused;
+extern int g_lastpos;
+extern int m_nblock;
+
+extern DWORD MainThreadId;
+
+void config(HWND hwndParent);
+void config_read();
+//extern int config_sample;
+
+//extern int config_rip_buffersize; // number of sectors to read at once when ripping
+//extern int config_rip_buffers; // number of buffers to use when ripping
+//extern int config_play_buffersize; // number of sectors to read at once when playing
+//extern int config_play_buffers; // number of buffers to use when playing
+
+//extern int config_maxextractspeed;
+
+// TODO review this for the DAE mode...
+//extern int config_offset; // number of samples of offset when ripping (like EAC)
+//extern int config_read_leadin;
+
+extern int g_playlength;
+extern int g_playtrack;
+
+void WaitForEvent(HANDLE hEvent, DWORD msMaxWaitTime);
+MCIERROR MCISendCommand(MCIDEVICEID IDDevice, UINT uMsg, DWORD fdwCommand, DWORD_PTR dwParam);
+int isMediaPresent(MCIDEVICEID wDeviceID);
+void CDClose(MCIDEVICEID* lpDeviceID);
+BOOL CDOpen(MCIDEVICEID* lpDeviceID, int device, const wchar_t *alias = 0);
+BOOL CDID(MCIDEVICEID wDeviceID, wchar_t *id, size_t len);
+void CDClose(MCIDEVICEID* lpDeviceID);
+unsigned int CDGetTracks(MCIDEVICEID wDeviceID);
+unsigned int CDGetCurrTrack(MCIDEVICEID wDeviceID);
+int CDPlay(MCIDEVICEID wDeviceID, unsigned int nTrack, BOOL bResume, unsigned int nMin, unsigned int nSec, unsigned int endms);
+void CDStop(MCIDEVICEID wDeviceID);
+void CDEject(MCIDEVICEID wDeviceID);
+void CDPause(MCIDEVICEID wDeviceID);
+unsigned int CDGetTrackLength(MCIDEVICEID wDeviceID,
+ unsigned int nTrack);
+
+int getSCSIIDFromDrive(char driveletter, int *host, int *id, int *lun);
+extern char * s_last_error;
+void CloseTables();
+
+const char *ReadLine(const char *input, char *output, size_t size, int codepage);
+
+bool ParseName(const wchar_t *fn, wchar_t &device, int &trackNum);
+
+// {B6CB4A7C-A8D0-4c55-8E60-9F7A7A23DA0F}
+static const GUID playbackConfigGroupGUID =
+ { 0xb6cb4a7c, 0xa8d0, 0x4c55, { 0x8e, 0x60, 0x9f, 0x7a, 0x7a, 0x23, 0xda, 0xf } };
+
+class C_CDPlay;
+class WindacPlay;
+class DAEPlay;
+class MciPlay;
+
+extern C_CDPlay *g_cdplay;
+extern WindacPlay *windacPlayer;
+extern DAEPlay *daePlayer;
+extern MciPlay *mciPlayer;
+
+extern int a_v, a_p;
+
+#endif \ No newline at end of file