id
int64
0
755k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
65
repo_stars
int64
100
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
9 values
repo_extraction_date
stringclasses
92 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
50,195
PropertyTabDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/PropertyTabDlg.h
#pragma once #include "TabDlg.h" #include "IPropertyTabDlg.h" #include "EditEx.h" #include "MyComboBox.h" // CPropertyTabDlg 对话框 class CPropertyTabDlg : public CTabDlg, public IPropertyTabDlg { DECLARE_DYNAMIC(CPropertyTabDlg) public: CPropertyTabDlg(vector<SongInfo>& all_song_info, int& index, CWnd* pParent = NUL...
2,996
C++
.h
83
31.433735
120
0.761451
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,196
MediaClassifyDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/MediaClassifyDlg.h
#pragma once #include "MediaLibHelper.h" #include "ListCtrlEx.h" #include "SearchEditCtrl.h" #include "MediaLibTabDlg.h" #include "HorizontalSplitter.h" // CMediaClassifyDlg 对话框 class CMediaClassifyDlg : public CMediaLibTabDlg { DECLARE_DYNAMIC(CMediaClassifyDlg) public: CMediaClassifyDlg(CMediaClassifier::...
4,337
C++
.h
94
38.37234
102
0.718105
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,197
SliderCtrlEx.h
zhongyang219_MusicPlayer2/MusicPlayer2/SliderCtrlEx.h
#pragma once // CSliderCtrlEx class CSliderCtrlEx : public CSliderCtrl { DECLARE_DYNAMIC(CSliderCtrlEx) public: CSliderCtrlEx(); virtual ~CSliderCtrlEx(); void SetMouseWheelEnable(bool enable); //设置是否允许响应鼠标滚轮 protected: bool m_mouse_wheel_enable{ true }; protected: DECLARE_MESSAGE_MAP() public: v...
396
C++
.h
16
20.5625
58
0.788406
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,199
SongInfo.h
zhongyang219_MusicPlayer2/MusicPlayer2/SongInfo.h
#pragma once #include "Time.h" enum eTagType { T_OTHER_TAG = 0, T_ID3V1 = 1, T_ID3V2 = 1 << 1, T_APE = 1 << 2, T_RIFF = 1 << 3, T_MP4 = 1 << 4, }; //一首歌曲的信息 struct SongInfo { wstring file_path{}; // 歌曲的路径 wstring lyric_file{}; // 匹配的歌词文件的路径 wstring titl...
8,162
C++
.h
167
34.497006
120
0.626919
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,200
TagSelBaseDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/TagSelBaseDlg.h
#pragma once #include "BaseDialog.h" // CTagSelBaseDlg 对话框 class CTagSelBaseDlg : public CBaseDialog { DECLARE_DYNAMIC(CTagSelBaseDlg) public: CTagSelBaseDlg(bool original_str_disable, CWnd* pParent = nullptr); // 标准构造函数 virtual ~CTagSelBaseDlg(); // DoModal之前外部设置一个Formular(可选),窗口初始化时会被设为当前选中 ...
3,050
C++
.h
68
35.970588
107
0.753184
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,201
Common.h
zhongyang219_MusicPlayer2/MusicPlayer2/Common.h
//CCommon类为全局函数的定义 #pragma once #include "CVariant.h" #include <initializer_list> #include <numeric> #include <gdiplus.h> enum class Command { OPEN, PLAY, CLOSE, PAUSE, STOP, PLAY_PAUSE, FF, //快进 REW, //快倒 VOLUME_ADJ, SEEK }; namespace ControlCmd { const int NONE = 0; ...
23,617
C++
.h
501
32.572854
279
0.688016
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,202
BassMixLibrary.h
zhongyang219_MusicPlayer2/MusicPlayer2/BassMixLibrary.h
#pragma once #include "DllLib.h" // BASS_Mixer_StreamCreate flags #define BASS_MIXER_END 0x10000 // end the stream when there are no sources class CBassMixLibrary : public CDllLib { typedef DWORD(WINAPI *_BASS_Mixer_StreamCreate)(DWORD freq, DWORD chans, DWORD flags); typedef BOOL(WINAPI *_BASS_Mixer_St...
611
C++
.h
17
32.470588
97
0.768836
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,203
Lyric.h
zhongyang219_MusicPlayer2/MusicPlayer2/Lyric.h
#pragma once #include"Time.h" #include "Common.h" class CLyrics { public: struct Lyric // 一句歌词的结构体 { int time_start_raw{}; // 行开始时间(初始化时写入之后只读) int time_span_raw{}; // 行持续时间(初始化时写入之后只读) int time_start{}; // 行开始时间(偏移量即时应用) int time_span{}; // 行持续时间...
8,408
C++
.h
144
35.625
148
0.662772
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,204
Define.h
zhongyang219_MusicPlayer2/MusicPlayer2/Define.h
#pragma once //自定义包含文件 #include <vector> #include <io.h> #include <string> #include <algorithm> #include <fstream> #include <sstream> #include <iomanip> #include <map> #include <set> #include <unordered_map> #include <unordered_set> #include <deque> #include <list> #include <mutex> #include <shared_mutex> #include <cma...
7,947
C++
.h
170
34.941176
111
0.727061
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,205
COSUPlayerHelper.h
zhongyang219_MusicPlayer2/MusicPlayer2/COSUPlayerHelper.h
#pragma once #include "SongInfo.h" class COSUPlayerHelper { public: COSUPlayerHelper(); ~COSUPlayerHelper(); static bool IsOsuFolder(const std::wstring& strPath); static bool IsOsuFile(const std::wstring& strPath); static void GetOSUAudioFiles(wstring path, vector<SongInfo>& song_list); static ...
1,098
C++
.h
37
25.648649
76
0.746398
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,206
EqualizerDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/EqualizerDlg.h
#pragma once #include "TabDlg.h" #include "CListBoxEnhanced.h" // CEqualizerDlg 对话框 class CEqualizerDlg : public CTabDlg { DECLARE_DYNAMIC(CEqualizerDlg) public: CEqualizerDlg(CWnd* pParent = NULL); // 标准构造函数 virtual ~CEqualizerDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_EQUALIZER_DIA...
1,400
C++
.h
35
32.8
76
0.683657
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,207
bass.h
zhongyang219_MusicPlayer2/MusicPlayer2/bass.h
/* BASS 2.4 C/C++ header file Copyright (c) 1999-2021 Un4seen Developments Ltd. See the BASS.CHM file for more detailed documentation */ #ifndef BASS_H #define BASS_H #ifdef _WIN32 #ifdef WINAPI_FAMILY #include <winapifamily.h> #endif #include <wtypes.h> typedef unsigned __int64 QWORD; #else #include <stdint.h> #...
44,948
C++
.h
1,022
42.664384
139
0.764407
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
50,208
CommonDialogMgr.h
zhongyang219_MusicPlayer2/MusicPlayer2/CommonDialogMgr.h
#pragma once class CommonDialogMgr { public: CommonDialogMgr(); ~CommonDialogMgr(); // 删除一个文件 static int DeleteAFile(HWND hwnd, wstring file); // 删除多个文件 static int DeleteFiles(HWND hwnd, const vector<wstring>& files); // 复制一个文件 static int CopyAFile(HWND hwnd, wstring file_from, wstring...
814
C++
.h
22
27.363636
83
0.702985
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,209
TagEditDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/TagEditDlg.h
#pragma once #include "BaseDialog.h" // CTagEditDlg 对话框 class CTagEditDlg : public CBaseDialog { DECLARE_DYNAMIC(CTagEditDlg) public: CTagEditDlg(vector<SongInfo>& file_list, int index, CWnd* pParent = nullptr); // 标准构造函数 virtual ~CTagEditDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_TAG...
865
C++
.h
28
26.071429
93
0.732997
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,210
DrawCommon.h
zhongyang219_MusicPlayer2/MusicPlayer2/DrawCommon.h
//这个类用于定义用于绘图的函数 #pragma once enum class Alignment //对齐方式 { LEFT, RIGHT, AUTO, // 用于歌词对齐选项,原来的居中,支持卡拉OK显示 CENTER }; enum ImageType { IT_JPG, IT_PNG, IT_GIF, IT_BMP }; class DrawAreaGuard; class CDrawCommon { public: //拉伸模式 enum class StretchMode { STRETCH, ...
9,132
C++
.h
183
34.939891
193
0.698567
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,211
PlayListCtrl.h
zhongyang219_MusicPlayer2/MusicPlayer2/PlayListCtrl.h
//播放列表专用的控件类,从CListCtrlEx派生,用于实现设置CListCtrl控件文字颜色 //以及鼠标提示信息 #pragma once #include "AudioCommon.h" #include "ColorConvert.h" #include "ListCtrlEx.h" #include "Common.h" // CPlayListCtrl class CPlayListCtrl : public CListCtrlEx { DECLARE_DYNAMIC(CPlayListCtrl) public: CPlayListCtrl(const vector<SongInfo>& all...
1,674
C++
.h
36
34.694444
110
0.753179
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,212
LyricSettingsDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/LyricSettingsDlg.h
#pragma once #include "FolderBrowserDlg.h" #include "TabDlg.h" #include "ColorStaticEx.h" #include "DesktopLyric.h" #include "BrowseEdit.h" #include "MyComboBox.h" #include "SliderCtrlEx.h" #include "SpinEdit.h" // CLyricSettingsDlg 对话框 class CLyricSettingsDlg : public CTabDlg { DECLARE_DYNAMIC(CLyricSettingsDlg)...
5,551
C++
.h
131
37.206107
76
0.770245
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,213
FolderPropertiesDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/FolderPropertiesDlg.h
#pragma once #include "SimplePropertiesDlg.h" #include "ListCtrlEx.h" #include "RecentFolderMgr.h" // CFolderPropertiesDlg 对话框 class CFolderPropertiesDlg : public CSimplePropertiesDlg { DECLARE_DYNAMIC(CFolderPropertiesDlg) public: CFolderPropertiesDlg(const PathInfo& folder_info, CWnd* pParent = nullptr); ...
613
C++
.h
21
25.285714
91
0.786856
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,214
InternetCommon.h
zhongyang219_MusicPlayer2/MusicPlayer2/InternetCommon.h
#pragma once #include "Common.h" enum DownloadResult //下载结果 { DR_SUCCESS, //成功 DR_NETWORK_ERROR, //网络连接失败 DR_DOWNLOAD_ERROR //下载失败 }; #define NORMAL_CONNECT INTERNET_FLAG_KEEP_CONNECTION #define SECURE_CONNECT NORMAL_CONNECT | INTERNET_FLAG_SECURE #define NORMAL_REQUEST INTE...
3,009
C++
.h
55
41.436364
189
0.743933
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,215
MiniModeUserUi.h
zhongyang219_MusicPlayer2/MusicPlayer2/MiniModeUserUi.h
#pragma once #include "UserUi.h" class CMiniModeUserUi : public CUserUi { public: CMiniModeUserUi(CWnd* pMainWnd, const std::wstring& xml_path); CMiniModeUserUi(CWnd* pMainWnd, UINT id); // id为xml资源ID ~CMiniModeUserUi(); bool GetUiSize(int& width, int& height, int& height_with_playlist); std::sh...
1,253
C++
.h
27
40.962963
93
0.741935
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,216
MediaLibTabDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/MediaLibTabDlg.h
#pragma once #include "TabDlg.h" #include "SongInfo.h" #include "ListCtrlEx.h" #include "MediaLibHelper.h" class CMediaLibTabDlg : public CTabDlg { DECLARE_DYNAMIC(CMediaLibTabDlg) public: CMediaLibTabDlg(UINT nIDTemplate, CWnd *pParent = NULL); ~CMediaLibTabDlg(); protected: // 获取右侧选中歌曲列表(取出GetItems...
2,663
C++
.h
58
33.068966
116
0.743578
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,217
LyricDownloadDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/LyricDownloadDlg.h
#pragma once #include "LyricDownloadCommon.h" #include "Lyric.h" #include "ListCtrlEx.h" #include "SongInfo.h" #include "BaseDialog.h" // CLyricDownloadDlg 对话框 class CLyricDownloadDlg : public CBaseDialog { DECLARE_DYNAMIC(CLyricDownloadDlg) public: CLyricDownloadDlg(CWnd* pParent = NULL); // 标准构造函数 virtual ~C...
4,116
C++
.h
110
30.472727
72
0.775763
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,218
OggEncodeCfgDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/OggEncodeCfgDlg.h
#pragma once #include "BaseDialog.h" #include "IPlayerCore.h" // COggEncodeCfgDlg 对话框 class COggEncodeCfgDlg : public CBaseDialog { DECLARE_DYNAMIC(COggEncodeCfgDlg) public: COggEncodeCfgDlg(CWnd* pParent = nullptr); // 标准构造函数 virtual ~COggEncodeCfgDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD...
889
C++
.h
28
26.75
78
0.746601
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,219
IPlayerUI.h
zhongyang219_MusicPlayer2/MusicPlayer2/IPlayerUI.h
#pragma once #include "stdafx.h" class IPlayerUI { public: struct UIButton //界面中绘制的按钮 { CRect rect; //按钮的矩形区域 bool hover{ false }; //鼠标是否指向按钮 bool pressed{ false }; //按钮是否按下 bool enable{ true }; //按钮是否启用 }; public: IPlayerUI(){} virtual ~IPlayerUI(){} virtual void Init(CDC* pDC) = 0; virtual void ...
1,137
C++
.h
34
28.823529
59
0.73216
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,220
FilterHelper.h
zhongyang219_MusicPlayer2/MusicPlayer2/FilterHelper.h
#pragma once class FilterHelper { public: static wstring GetAudioFileFilter(); static wstring GetLyricFileFilter(); static wstring GetSF2FileFilter(); static wstring GetListenTimeFilter(); // 获取打开播放列表对话框的filier static wstring GetPlaylistSelectFilter(); // 获取播放列表另存为的filier static wstring...
519
C++
.h
16
25.75
67
0.778761
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,221
AboutDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/AboutDlg.h
#pragma once #include "BaseDialog.h" // 用于应用程序“关于”菜单项的 CAboutDlg 对话框 class CAboutDlg : public CBaseDialog { public: CAboutDlg(); virtual ~CAboutDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_ABOUTBOX }; #endif protected: CToolTipCtrl m_tool_tip; //鼠标指向时的工具提示 CRect m_rc_pic; ...
1,908
C++
.h
43
38.27907
82
0.746319
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,222
MediaLibPlaylistMgr.h
zhongyang219_MusicPlayer2/MusicPlayer2/MediaLibPlaylistMgr.h
#pragma once #include "MediaLibHelper.h" #include "PlaylistMgr.h" #include "CommonData.h" #include <deque> #include <map> #include <set> #include "IconMgr.h" #include "AudioCommon.h" //通过媒体库中艺术家、唱片集、流派、年份等界面创建的播放列表信息 struct MediaLibPlaylistInfo : public PlaylistInfo { //媒体库播放列表的类型。path字段用于储存对应媒体库项目的名称, //例如me...
2,442
C++
.h
47
41.468085
203
0.787409
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,223
MediaTransControls.h
zhongyang219_MusicPlayer2/MusicPlayer2/MediaTransControls.h
#pragma once #include "SongInfo.h" enum class PlaybackStatus { Closed = 0, Changing = 1, Stopped = 2, Playing = 3, Paused = 4, }; class MediaTransControlsImpl; class MediaTransControls { public: MediaTransControls(); ~MediaTransControls(); bool InitSMTC(bool enable); void loadThum...
904
C++
.h
32
23.78125
61
0.727705
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,224
ColorStaticEx.h
zhongyang219_MusicPlayer2/MusicPlayer2/ColorStaticEx.h
#pragma once #include "ColorStatic.h" class CColorStaticEx : public CColorStatic { public: CColorStaticEx(); ~CColorStaticEx(); COLORREF GetFillColor() const; virtual void PreSubclassWindow(); DECLARE_MESSAGE_MAP() // afx_msg void OnStnClicked(); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); };
315
C++
.h
14
20.642857
53
0.790541
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,225
CommonData.h
zhongyang219_MusicPlayer2/MusicPlayer2/CommonData.h
#pragma once #include "ColorConvert.h" #include "DrawCommon.h" #include "Common.h" namespace CONSTVAL { const COLORREF BACKGROUND_COLOR = GRAY(255); //更改此颜色的值可以修改主窗口背景色 const double FULL_SCREEN_ZOOM_FACTOR = 1.5; } struct DeviceInfo //播放设备的信息 { int index; //设备的索引 wstring name; //设备的名称 wstring dr...
19,383
C++
.h
406
32.330049
116
0.638817
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,226
UIElement.h
zhongyang219_MusicPlayer2/MusicPlayer2/UIElement.h
#pragma once #include "CPlayerUIBase.h" #include "MediaLibHelper.h" #include <set> class CUiSearchBox; //定义界面元素 namespace UiElement { //所有界面元素的基类 class Element { public: struct Value //一个布局的数值 { Value(bool _is_vertical, Element* _owner); void FromString(c...
34,297
C++
.h
776
30.720361
148
0.625998
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,227
EditableListBox.h
zhongyang219_MusicPlayer2/MusicPlayer2/EditableListBox.h
#pragma once #include "CListBoxEnhanced.h" class CEditableListBox : public CListBoxEnhanced { DECLARE_DYNAMIC(CEditableListBox) public: CEditableListBox(); ~CEditableListBox(); void Edit(int row); //编辑指定行 protected: CEdit m_item_edit; int m_edit_row{}; bool m_editing{}; protected: ...
600
C++
.h
23
21.782609
67
0.72711
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,228
FormatConvertDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/FormatConvertDlg.h
#pragma once #include "BaseDialog.h" #include "IPlayerCore.h" #include "ListCtrlEx.h" #include "PlayerProgressBar.h" #include "BrowseEdit.h" //单个文件转换进度的消息 //wParam: 文件在m_file_list列表中的索引 //lParam: 转换的进度。0~100: 已完成的百分比; 101: 已完成; 102: 已跳过; <0:出错 #define WM_CONVERT_PROGRESS (WM_USER+111) //全部文件转换已完成的消息 #define WM_CONVER...
4,458
C++
.h
107
32.915888
78
0.73113
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,229
EditEx.h
zhongyang219_MusicPlayer2/MusicPlayer2/EditEx.h
//CEdit的派生类,用于支持按Ctrl+A全选 #pragma once // CEditEx class CEditEx : public CEdit { DECLARE_DYNAMIC(CEditEx) public: CEditEx(); virtual ~CEditEx(); void ResetModified(); CString GetText() const; void SetColorWhenModified(bool val); //是否要在有修改时将文本颜色改为主题色 protected: bool m_show_color_when_modified...
645
C++
.h
22
23.727273
83
0.760436
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,230
MP3EncodeCfgDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/MP3EncodeCfgDlg.h
#pragma once #include "BaseDialog.h" #include "IPlayerCore.h" // CMP3EncodeCfgDlg 对话框 class CMP3EncodeCfgDlg : public CBaseDialog { DECLARE_DYNAMIC(CMP3EncodeCfgDlg) public: CMP3EncodeCfgDlg(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CMP3EncodeCfgDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD...
1,462
C++
.h
42
29.857143
79
0.748902
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,231
GetTagOnlineDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/GetTagOnlineDlg.h
#pragma once #include "CoverDownloadDlg.h" #include "InternetCommon.h" class CGetTagOnlineDlg : public CCoverDownloadDlg { public: CGetTagOnlineDlg(const SongInfo& song, CWnd* pParent = nullptr); virtual ~CGetTagOnlineDlg(); const CInternetCommon::ItemInfo& GetSelectedItem() const { return m_item_info; } ...
624
C++
.h
19
29.578947
85
0.777592
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,232
BassCore.h
zhongyang219_MusicPlayer2/MusicPlayer2/BassCore.h
#pragma once #include "IPlayerCore.h" #include "bass.h" #include "BASSMidiLibrary.h" #include "Time.h" #include "BASSEncodeLibrary.h" #include "BASSWmaLibrary.h" #include "BassMixLibrary.h" #define PLAYING_STATE_DEFAULT_VALUE 99 class CBassCore : public IPlayerCore { public: CBassCore(); ~CBassCore(); ...
4,597
C++
.h
99
39.030303
173
0.731939
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,233
CPlayerUIBase.h
zhongyang219_MusicPlayer2/MusicPlayer2/CPlayerUIBase.h
#pragma once #include "MusicPlayer2.h" #include "IPlayerUI.h" #include "CPlayerUIHelper.h" #include "CUIDrawer.h" #include "IconMgr.h" #define WM_MAIN_MENU_POPEDUP (WM_USER+117) //显示弹出式主菜单的消息,wPara为表示菜单显示位置的CPoint的指针 namespace UiElement { class Element; class Rectangle; class Button; class Text; ...
16,769
C++
.h
346
35.283237
216
0.669763
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,234
Time.h
zhongyang219_MusicPlayer2/MusicPlayer2/Time.h
#pragma once class Time { public: unsigned int negative : 1; unsigned int min:15; unsigned int sec:6; unsigned int msec:10; Time() :negative{}, min{}, sec{}, msec{} {} Time(int _min, int _sec, int _msec) : negative{}, min{ static_cast<unsigned int>(_min) }, sec{ static_cast...
4,803
C++
.h
161
20.043478
142
0.507141
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,235
AudioTagOld.h
zhongyang219_MusicPlayer2/MusicPlayer2/AudioTagOld.h
#pragma once #include "AudioCommon.h" //主要通过BASS获取音频标签位置并手动解析标签内容,目前已经基本不再使用,现在获取音频标签使用taglib库,代码在CAudioTag类中。 class CAudioTagOld { public: CAudioTagOld(HSTREAM hStream, SongInfo & song_info, AudioType type); ~CAudioTagOld(); wstring GetAudioLyric(); //向一个MP3文件写入ID3V1标签 //file_path:mp3文件的路径 //text_cut_of...
2,432
C++
.h
51
34.196078
95
0.786921
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,236
DllLib.h
zhongyang219_MusicPlayer2/MusicPlayer2/DllLib.h
#pragma once //使用动态方式加载Dll class CDllLib { public: CDllLib(); ~CDllLib(); void Init(const wstring& dll_path); //载入DLL文件并获取函数入口 void UnInit(); bool IsSucceed(); //判断DLL中的函数是否获取成功 protected: virtual bool GetFunction() = 0; //从DLL中获取函数入口地址并保存起来,成功则返回true protected: HMODULE m_dll_module...
463
C++
.h
16
18.9375
70
0.698507
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,237
TreeCtrlEx.h
zhongyang219_MusicPlayer2/MusicPlayer2/TreeCtrlEx.h
#pragma once #include "ColorConvert.h" // CTreeCtrlEx //注:此类通过自绘设置了文本及选中项的背景颜色,CTreeCtrl::SetTextColor 将不再起作用, //但你仍然可以使用 CTreeCtrl::SetBkColor 设置背景颜色 class CTreeCtrlEx : public CTreeCtrl { DECLARE_DYNAMIC(CTreeCtrlEx) public: CTreeCtrlEx(); virtual ~CTreeCtrlEx(); public: void InsertPath(CString path, HTR...
1,838
C++
.h
37
36.216216
139
0.719718
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,238
UIWindow.h
zhongyang219_MusicPlayer2/MusicPlayer2/UIWindow.h
#pragma once #include "IPlayerUI.h" class CUIWindow : public CStatic { public: CUIWindow(IPlayerUI*& pUI) : m_pUI(pUI) {} ~CUIWindow() {} protected: IPlayerUI*& m_pUI; bool m_bTitlebarLButtonDown{}; CPoint m_ptLButtonDown{}; IPlayerUI* GetCurUi() const; virtual void P...
1,061
C++
.h
34
27.117647
83
0.724951
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,239
WinVersionHelper.h
zhongyang219_MusicPlayer2/MusicPlayer2/WinVersionHelper.h
#pragma once struct WinVersion { public: WinVersion(); int m_major_version; int m_minor_version; int m_build_number; }; class CWinVersionHelper { public: ~CWinVersionHelper(); static bool IsWindows11OrLater(); //判断当前Windows版本是否为Win11或更新的版本 static bool IsWindows10(); //判断Windows版本是否为W...
1,368
C++
.h
35
33.257143
92
0.790698
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,240
CHotKeySettingDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/CHotKeySettingDlg.h
#pragma once #include "CHotkeyManager.h" #include "TabDlg.h" #include "ListCtrlEx.h" // CHotKeySettingDlg 对话框 class CHotKeySettingDlg : public CTabDlg { DECLARE_DYNAMIC(CHotKeySettingDlg) public: CHotKeySettingDlg(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CHotKeySettingDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIM...
1,278
C++
.h
41
28.390244
68
0.795302
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,241
OptionsDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/OptionsDlg.h
#pragma once #include "LyricSettingsDlg.h" #include "AppearanceSettingDlg.h" #include "DataSettingsDlg.h" #include "PlaySettingsDlg.h" #include "CTabCtrlEx.h" #include "CHotKeySettingDlg.h" #include "MediaLibSettingDlg.h" #include "BaseDialog.h" // COptionsDlg 对话框 #define TIMER_ID2 1122 #define WM_SETTINGS_APPLIED (WM...
1,569
C++
.h
44
29.75
69
0.752593
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,242
resource.h
zhongyang219_MusicPlayer2/MusicPlayer2/resource.h
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ 生成的包含文件。 // 供 MusicPlayer2.rc 使用 // #define IDD_ABOUTBOX 100 #define IDD_MUSICPLAYER2_DIALOG 102 #define IDR_MAINFRAME 128 #define IDD_SET_PATH_DIALOG 133 #define IDD_FIND_DIALOG 136 #define I...
47,139
C++
.h
1,004
44.923307
68
0.610718
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,243
MediaTransControlsImpl.h
zhongyang219_MusicPlayer2/MusicPlayer2/MediaTransControlsImpl.h
#include <atlbase.h> #include <wrl.h> #include <windows.media.h> using ABI::Windows::Media::SystemMediaTransportControlsButton; using ABI::Windows::Media::MediaPlaybackStatus; class MediaTransControlsImpl { public: MediaTransControlsImpl(HWND appWindow, std::function<void(SystemMediaTransportControlsButto...
1,685
C++
.h
32
48.3125
195
0.783718
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,244
CueFile.h
zhongyang219_MusicPlayer2/MusicPlayer2/CueFile.h
#pragma once #include "SongInfo.h" #include "Common.h" class CCueFile { public: CCueFile(const std::wstring& file_path); CCueFile(); ~CCueFile(); std::vector<SongInfo>& GetAnalysisResult(); //将所有cue音轨保存到cue文件 //如果file_path为空,则保存到m_file_path bool Save(std::wstring file_path = std::wstring(...
1,491
C++
.h
32
37.84375
125
0.71297
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,245
PlaySettingsDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/PlaySettingsDlg.h
#pragma once #include "TabDlg.h" #include "ListCtrlEx.h" #include "MyComboBox.h" #include "SpinEdit.h" #include "BrowseEdit.h" // CPlaySettingsDlg 对话框 class CPlaySettingsDlg : public CTabDlg { DECLARE_DYNAMIC(CPlaySettingsDlg) public: CPlaySettingsDlg(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CPlayS...
1,554
C++
.h
47
28.510638
77
0.758242
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,246
CMMNotificationClient.h
zhongyang219_MusicPlayer2/MusicPlayer2/CMMNotificationClient.h
#pragma once #include <mmdeviceapi.h> class CDevicesManager; class CMMNotificationClient : public IMMNotificationClient { public: CMMNotificationClient(IMMDeviceEnumerator* _pEnum, CDevicesManager* manager); virtual ~CMMNotificationClient(); ULONG STDMETHODCALLTYPE AddRef(); ULONG STDMETHODCALLTYPE Release(); HRES...
917
C++
.h
28
30.642857
78
0.850847
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,247
UserUi.h
zhongyang219_MusicPlayer2/MusicPlayer2/UserUi.h
#pragma once #include "CPlayerUIBase.h" #include "UIElement.h" #include "TinyXml2Helper.h" class CUserUi : public CPlayerUIBase { public: CUserUi(CWnd* pMainWnd, const std::wstring& xml_path); CUserUi(CWnd* pMainWnd, UINT id); //此构造函数不传递xml文件的路径,id为xml界面资源ID ~CUserUi(); void LoadFromContents(co...
5,147
C++
.h
115
34.843478
167
0.703267
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,248
BASSWmaLibrary.h
zhongyang219_MusicPlayer2/MusicPlayer2/BASSWmaLibrary.h
#pragma once #include "DllLib.h" typedef DWORD HWMENCODE; // WMA encoding handle #define BASS_WMA_ENCODE_STANDARD 0x2000 // standard WMA #define BASS_WMA_ENCODE_SOURCE 0x80000 // use a BASS channel as source // BASS_WMA_EncodeSetTag "form" values #define BASS_WMA_TAG_UNICODE 1 #define BASS_ERROR_WMA 1001 // Win...
1,548
C++
.h
33
44.30303
125
0.776059
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,249
PlaylistMgr.h
zhongyang219_MusicPlayer2/MusicPlayer2/PlaylistMgr.h
#pragma once //储存路径信息 enum PlaylistType { PT_USER, PT_DEFAULT, PT_FAVOURITE, PT_TEMP }; struct PlaylistInfo { wstring path; //路径 int track{}; //最后播放到的曲目序号 int position{}; //最后播放到的位置 int track_num{}; //路径中音频文件的数量 int total_time{}; //路径中音频文件的总时间 unsigned __int64 ...
4,047
C++
.h
85
35.376471
132
0.726094
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,250
PropertyDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/PropertyDlg.h
#pragma once #include "PropertyTabDlg.h" #include "CTabCtrlEx.h" #include "BaseDialog.h" #include "PropertyAlbumCoverDlg.h" #include "PropertyAdvancedDlg.h" // CPropertyDlg 对话框 class CPropertyDlg : public CBaseDialog { DECLARE_DYNAMIC(CPropertyDlg) public: CPropertyDlg(vector<SongInfo>& all_song_info, int index, ...
1,822
C++
.h
51
30.490196
165
0.744745
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,251
BrowseEdit.h
zhongyang219_MusicPlayer2/MusicPlayer2/BrowseEdit.h
#pragma once #include "ColorConvert.h" #include <afxeditbrowsectrl.h> #include "CommonData.h" #define WM_EDIT_BROWSE_CHANGED (WM_USER+126) //通过“浏览”按钮选择了一个文件或文件夹后发送此消息 // CBrowseEdit class CBrowseEdit : public CMFCEditBrowseCtrl { DECLARE_DYNAMIC(CBrowseEdit) public: CBrowseEdit(); virtual ~CBrowseEdit(); ...
1,416
C++
.h
38
29.289474
109
0.729596
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,252
TagFromNameDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/TagFromNameDlg.h
#pragma once #include "TagSelBaseDlg.h" // CTagFromNameDlg 对话框 class CTagFromNameDlg : public CTagSelBaseDlg { DECLARE_DYNAMIC(CTagFromNameDlg) public: CTagFromNameDlg(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CTagFromNameDlg(); protected: virtual CString GetDialogName() const; virtual bool ...
518
C++
.h
17
25.823529
69
0.760085
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,253
MusicPlayer2.h
zhongyang219_MusicPlayer2/MusicPlayer2/MusicPlayer2.h
// MusicPlayer2.h : PROJECT_NAME 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h" // 主符号 #include "CommonData.h" #include "AcceleratorRes.h" #include "LastFM.h" #include "StrTable.h" #include "MenuMgr.h" #include "IconMgr.h" #include "ChineseP...
6,137
C++
.h
130
33.623077
94
0.717414
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,254
SupportedFormatDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/SupportedFormatDlg.h
#pragma once #include "BaseDialog.h" #include "ListCtrlEx.h" // CSupportedFormatDlg 对话框 class CSupportedFormatDlg : public CBaseDialog { DECLARE_DYNAMIC(CSupportedFormatDlg) public: CSupportedFormatDlg(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CSupportedFormatDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIME ...
693
C++
.h
23
25.565217
69
0.759554
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,255
SongDataManager.h
zhongyang219_MusicPlayer2/MusicPlayer2/SongDataManager.h
#pragma once #include "SongInfo.h" class CSongDataManager { public: ~CSongDataManager(); using SongDataMap = std::unordered_map<SongKey, SongInfo>; static CSongDataManager& GetInstance(); void SaveSongData(std::wstring path); //将所有歌曲信息以序列化的方式保存到文件 void LoadSongData(std::wstring path); ...
2,758
C++
.h
47
39.744681
100
0.73913
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,256
AppearanceSettingDlg.h
zhongyang219_MusicPlayer2/MusicPlayer2/AppearanceSettingDlg.h
#pragma once #include "Common.h" #include "DrawCommon.h" #include "ColorStatic.h" #include "TabDlg.h" #include "SpinEdit.h" #include "BrowseEdit.h" #include "SliderCtrlEx.h" #include "MyComboBox.h" // CAppearanceSettingDlg 对话框 class CAppearanceSettingDlg : public CTabDlg { DECLARE_DYNAMIC(CAppearanceSettingDlg) ...
5,364
C++
.h
127
36.03937
90
0.752647
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,257
UiMediaLibItemMgr.h
zhongyang219_MusicPlayer2/MusicPlayer2/UiMediaLibItemMgr.h
#pragma once #include <map> #include "MediaLibHelper.h" #include "UIElement.h" class CUiMediaLibItemMgr { public: ~CUiMediaLibItemMgr(); static CUiMediaLibItemMgr& Instance(); void Init(); int GetItemCount(CMediaClassifier::ClassificationType type) const; //获取指定类别下项目的数量 ...
5,313
C++
.h
105
39.190476
130
0.694152
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,258
BASSEncodeLibrary.h
zhongyang219_MusicPlayer2/MusicPlayer2/BASSEncodeLibrary.h
#pragma once #include "DllLib.h" typedef DWORD HENCODE; // encoder handle typedef void (CALLBACK ENCODEPROC)(HENCODE handle, DWORD channel, const void *buffer, DWORD length, void *user); /* Encoding callback function. handle : The encoder channel: The channel handle buffer : Buffer containing the encoded data length ...
1,363
C++
.h
32
40.25
124
0.775651
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,259
BASSMidiLibrary.h
zhongyang219_MusicPlayer2/MusicPlayer2/BASSMidiLibrary.h
//封装的BASS MIDI中的若干API函数,通过动态加载的方式 #pragma once #include "DllLib.h" typedef DWORD HSOUNDFONT; // soundfont handle struct BASS_MIDI_FONT { HSOUNDFONT font; // soundfont int preset; // preset number (-1=all) int bank; }; struct BASS_MIDI_FONTINFO { const char *name; const char *copyright; const char *comment; D...
2,028
C++
.h
55
34.163636
110
0.775446
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,260
SpectralDataHelper.h
zhongyang219_MusicPlayer2/MusicPlayer2/SpectralDataHelper.h
#pragma once class CSpectralDataHelper { public: CSpectralDataHelper(); //使用线性的方式根据fft数据计算频谱的高度 // @para[in]: // fft_data: fft数据 // scale: 柱形放大的比例,调整这个值可以调整频谱分析柱形图整体的高度 // @para[out]: // spectral_data: 频谱的高度 static void SpectralDataMapOld(float fft_data[FFT_SAMPLE], float spectral_da...
1,005
C++
.h
23
29.695652
114
0.699068
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,261
ScintillaEditView.h
zhongyang219_MusicPlayer2/MusicPlayer2/ScintillaEditView.h
#pragma once #include "../scintilla/include/SciLexer.h" #include "../scintilla/include/Scintilla.h" #include "ColorConvert.h" // CScintillaEditView 视图 #define SCINTILLA_MARGIN_LINENUMBER 0 #define MARGIN_FOLD_INDEX 1 class CScintillaEditView : public CView { DECLARE_DYNCREATE(CScintillaEditView) protected: CScin...
4,379
C++
.h
116
29.017241
110
0.691258
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,267
taglib_config.h
zhongyang219_MusicPlayer2/MusicPlayer2/taglib/taglib_config.h
/* taglib_config.h. Generated by cmake from taglib_config.h.cmake */ #ifndef TAGLIB_TAGLIB_CONFIG_H #define TAGLIB_TAGLIB_CONFIG_H /* These values are no longer used. This file is present only for compatibility reasons. */ #define TAGLIB_WITH_ASF 1 #define TAGLIB_WITH_MP4 1 #endif
290
C++
.h
7
39.857143
91
0.774194
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,282
taglib_export.h
zhongyang219_MusicPlayer2/MusicPlayer2/taglib/taglib_export.h
/*************************************************************************** copyright : (C) 2002 - 2008 by Scott Wheeler email : wheeler@kde.org ***************************************************************************/ /************************************************************...
2,184
C++
.h
40
52.825
81
0.467757
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
50,315
tag_c.h
zhongyang219_MusicPlayer2/MusicPlayer2/taglib/tag_c.h
/*************************************************************************** copyright : (C) 2003 by Scott Wheeler email : wheeler@kde.org ***************************************************************************/ /*******************************************************************...
9,720
C++
.h
251
36.864542
101
0.632842
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
50,382
SciLexer.h
zhongyang219_MusicPlayer2/scintilla/include/SciLexer.h
/* Scintilla source code edit control */ /** @file SciLexer.h ** Interface to the added lexer functions in the SciLexer version of the edit control. **/ /* Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org> * The License.txt file describes the conditions under which this software may be distributed. */ /* Mo...
1,058
C++
.h
24
42.583333
97
0.792398
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,421
stdafx.h
zhongyang219_MusicPlayer2/UnitTest/stdafx.h
// stdafx.h : 标准系统包含文件的包含文件, // 或是经常使用但不常更改的 // 特定于项目的包含文件 // #pragma once #include "targetver.h" // 用于 CppUnitTest 的头文件 #include "CppUnitTest.h" // TODO: 在此处引用程序需要的其他头文件 #include <afx.h> #include <afxwin.h> // MFC 核心组件和标准组件
372
C++
.h
11
20.181818
44
0.725225
zhongyang219/MusicPlayer2
4,592
372
450
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,424
PowderToyFontEditor.cpp
The-Powder-Toy_The-Powder-Toy/src/PowderToyFontEditor.cpp
#include "PowderToySDL.h" #include "graphics/Graphics.h" #include "common/platform/Platform.h" #include "common/tpt-rand.h" #include "gui/font/FontEditor.h" #include "gui/interface/Engine.h" #include "Config.h" #include "SimulationConfig.h" #include <iostream> #include <memory> void LoadWindowPosition() { } void Save...
1,587
C++
.cpp
74
19.445946
69
0.728972
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,425
PowderToySDLCommon.cpp
The-Powder-Toy_The-Powder-Toy/src/PowderToySDLCommon.cpp
#include "PowderToySDL.h" #include "gui/interface/Engine.h" void MainLoop() { while (ui::Engine::Ref().Running()) { EngineProcess(); } } void SetFpsLimit(FpsLimit newFpsLimit) { } void UpdateFpsLimit() { }
214
C++
.cpp
15
12.733333
38
0.744898
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,426
PowderToySDL.cpp
The-Powder-Toy_The-Powder-Toy/src/PowderToySDL.cpp
#include "PowderToySDL.h" #include "SimulationConfig.h" #include "WindowIcon.h" #include "Config.h" #include "gui/interface/Engine.h" #include "graphics/Graphics.h" #include "common/platform/Platform.h" #include "common/clipboard/Clipboard.h" #include <iostream> int desktopWidth = 1280; int desktopHeight = 1024; SDL_W...
12,003
C++
.cpp
415
26.06506
185
0.722679
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,427
WindowIcon.cpp
The-Powder-Toy_The-Powder-Toy/src/WindowIcon.cpp
#include "Format.h" #include "graphics/VideoBuffer.h" #include "WindowIcon.h" #include "icon_exe.png.h" void WindowIcon(SDL_Window *window) { if (auto image = format::PixelsFromPNG(std::vector<char>(icon_exe_png, icon_exe_png + icon_exe_png_size))) { SDL_Surface *icon = SDL_CreateRGBSurfaceFrom(image->data(), ima...
502
C++
.cpp
13
36.769231
181
0.731006
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,429
PowderToy.cpp
The-Powder-Toy_The-Powder-Toy/src/PowderToy.cpp
#include "PowderToySDL.h" #include "Format.h" #include "X86KillDenormals.h" #include "prefs/GlobalPrefs.h" #include "client/Client.h" #include "client/GameSave.h" #include "client/SaveFile.h" #include "client/SaveInfo.h" #include "client/http/requestmanager/RequestManager.h" #include "client/http/GetSaveRequest.h" #inc...
15,733
C++
.cpp
516
27.726744
145
0.69316
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,430
PowderToySDLEmscripten.cpp
The-Powder-Toy_The-Powder-Toy/src/PowderToySDLEmscripten.cpp
#include "PowderToySDL.h" #include "gui/interface/Engine.h" #include <emscripten.h> #include <iostream> namespace Platform { void MaybeTriggerSyncFs(); } static void MainLoopBody() { EngineProcess(); Platform::MaybeTriggerSyncFs(); } void SetFpsLimit(FpsLimit newFpsLimit) { static bool mainLoopSet = false; if (...
1,120
C++
.cpp
47
21.893617
84
0.733146
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,431
PowderToyRenderer.cpp
The-Powder-Toy_The-Powder-Toy/src/PowderToyRenderer.cpp
#include "graphics/Graphics.h" #include "graphics/VideoBuffer.h" #include "graphics/Renderer.h" #include "common/String.h" #include "common/tpt-rand.h" #include "Format.h" #include "gui/interface/Engine.h" #include "client/GameSave.h" #include "simulation/Simulation.h" #include "simulation/SimulationData.h" #include "c...
1,935
C++
.cpp
65
27.584615
90
0.709989
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,433
Misc.cpp
The-Powder-Toy_The-Powder-Toy/src/Misc.cpp
#include "Misc.h" #include "common/String.h" #include <cstring> #include <sys/types.h> #include <cmath> #include <algorithm> void HSV_to_RGB(int h,int s,int v,int *r,int *g,int *b)//convert 0-255(0-360 for H) HSV values to 0-255 RGB { float hh, ss, vv, c, x; int m; hh = h/60.0f;//normalize values ss = s/255.0f; v...
1,611
C++
.cpp
79
18.151899
107
0.51864
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,434
Format.cpp
The-Powder-Toy_The-Powder-Toy/src/Format.cpp
#include <cstdint> #include <cstdio> #include <cstring> #include <ctime> #include <iostream> #include <iterator> #include <optional> #include <stdexcept> #include <png.h> #include "Format.h" #include "graphics/VideoBuffer.h" ByteString format::UnixtimeToDate(time_t unixtime, ByteString dateFormat, bool local) { struc...
9,741
C++
.cpp
356
24.617978
161
0.655397
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,435
X86KillDenormals.cpp
The-Powder-Toy_The-Powder-Toy/src/X86KillDenormals.cpp
#include "X86KillDenormals.h" #include <xmmintrin.h> #include <pmmintrin.h> void X86KillDenormals() { _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON); _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON); }
203
C++
.cpp
8
24
52
0.762887
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,437
Task.cpp
The-Powder-Toy_The-Powder-Toy/src/tasks/Task.cpp
#include "Task.h" #include "TaskListener.h" void Task::AddTaskListener(TaskListener * listener) { this->listener = listener; notifyProgressMain(); notifyStatusMain(); } void Task::Start() { before(); std::thread([this]() { doWork_wrapper(); }).detach(); } int Task::GetProgress() { return progress; } String T...
2,249
C++
.cpp
141
13.815603
54
0.710919
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
true
false
true
true
true
false
50,438
TaskWindow.cpp
The-Powder-Toy_The-Powder-Toy/src/tasks/TaskWindow.cpp
#include "TaskWindow.h" #include "Task.h" #include "gui/interface/Label.h" #include "gui/interface/ProgressBar.h" #include "gui/interface/Engine.h" #include "gui/dialogues/ErrorMessage.h" #include "gui/Style.h" #include "graphics/Graphics.h" #include <algorithm> TaskWindow::TaskWindow(String title_, Task * task_, ...
2,231
C++
.cpp
78
26.74359
90
0.740169
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,439
AbandonableTask.cpp
The-Powder-Toy_The-Powder-Toy/src/tasks/AbandonableTask.cpp
#include "AbandonableTask.h" void AbandonableTask::doWork_wrapper() { Task::doWork_wrapper(); done_cv.notify_one(); bool abandoned; { std::lock_guard<std::mutex> g(taskMutex); abandoned = thAbandoned; } if (abandoned) { delete this; } } void AbandonableTask::Finish() { { std::unique_lock<std::mutex>...
1,431
C++
.cpp
61
21.04918
74
0.721324
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
true
false
true
true
true
false
50,440
Prefs.cpp
The-Powder-Toy_The-Powder-Toy/src/prefs/Prefs.cpp
#include "Prefs.h" #include "common/platform/Platform.h" #include "common/tpt-rand.h" #include "client/User.h" #include <fstream> #include <iostream> Prefs::Prefs(ByteString newPath) : path(newPath) { Read(); } void Prefs::Read() { std::vector<char> data; if (!Platform::ReadFile(data, path)) { return; } Json:...
4,645
C++
.cpp
142
30.887324
153
0.708008
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,441
Graphics.cpp
The-Powder-Toy_The-Powder-Toy/src/graphics/Graphics.cpp
#include <algorithm> #include <cmath> #include <cstdlib> #include <cstring> #include <iostream> #include <memory> #include <png.h> #include "common/platform/Platform.h" #include "FontReader.h" #include "Format.h" #include "Graphics.h" #include "resampler/resampler.h" #include "SimulationConfig.h" #include "RasterDrawMe...
13,830
C++
.cpp
467
26.601713
129
0.660568
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,442
FontReader.cpp
The-Powder-Toy_The-Powder-Toy/src/graphics/FontReader.cpp
#include "FontReader.h" #include "bzip2/bz2wrap.h" #include "font.bz2.h" #include <array> #include <cstdint> unsigned char *font_data = nullptr; unsigned int *font_ptrs = nullptr; unsigned int (*font_ranges)[2] = nullptr; FontReader::FontReader(unsigned char const *_pointer): pointer(_pointer + 1), width(*_pointe...
2,613
C++
.cpp
119
19.571429
134
0.657948
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
50,443
Renderer.cpp
The-Powder-Toy_The-Powder-Toy/src/graphics/Renderer.cpp
#include "Renderer.h" #include "Misc.h" #include "VideoBuffer.h" #include "common/tpt-rand.h" #include "common/tpt-compat.h" #include "simulation/Simulation.h" #include "simulation/ElementGraphics.h" #include "simulation/ElementClasses.h" #include "simulation/Air.h" #include "simulation/gravity/Gravity.h" #include "sim...
40,449
C++
.cpp
1,246
27.037721
199
0.540236
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,444
RendererBasic.cpp
The-Powder-Toy_The-Powder-Toy/src/graphics/RendererBasic.cpp
#include <cmath> #include "gui/game/RenderPreset.h" #include "RasterDrawMethodsImpl.h" #include "Renderer.h" #include "simulation/ElementClasses.h" #include "simulation/ElementGraphics.h" const std::vector<RenderPreset> Renderer::renderModePresets = { { "Alternative Velocity Display", RENDER_EFFE | RENDER_BASC, ...
5,760
C++
.cpp
234
22.021368
93
0.653058
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,445
RasterGraphics.cpp
The-Powder-Toy_The-Powder-Toy/src/graphics/RasterGraphics.cpp
#include <cstdlib> #include <cstring> #include "Graphics.h" #include "SimulationConfig.h" #include "RasterDrawMethodsImpl.h" void Graphics::Finalise() { } template struct RasterDrawMethods<Graphics>;
203
C++
.cpp
9
21.222222
44
0.816754
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,447
LuaElements.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaElements.cpp
#include "LuaScriptInterface.h" #include "gui/game/GameModel.h" #include "simulation/ElementClasses.h" #include "simulation/ElementCommon.h" #include "simulation/SimulationData.h" #include <mutex> static void getDefaultProperties(lua_State *L, int id) { auto &sd = SimulationData::CRef(); auto &elements = sd.elements...
23,539
C++
.cpp
865
23.974566
141
0.668552
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,448
LuaSocketTCPNoHttp.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaSocketTCPNoHttp.cpp
#include "LuaScriptInterface.h" namespace LuaSocket { void OpenTCP(lua_State *L) { } }
91
C++
.cpp
7
11.428571
31
0.771084
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,449
LuaRenderer.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaRenderer.cpp
#include "LuaScriptInterface.h" #include "gui/game/GameController.h" #include "gui/game/GameModel.h" #include "graphics/Renderer.h" #include "graphics/Graphics.h" #include "simulation/ElementGraphics.h" static int renderMode(lua_State *L) { auto *lsi = GetLSI(); if (lua_gettop(L)) { lsi->gameModel->GetRendererSet...
6,946
C++
.cpp
283
22.462898
100
0.704607
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,450
LuaComponent.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaComponent.cpp
#include "LuaComponent.h" #include "LuaScriptInterface.h" #include "LuaWindow.h" #include "gui/interface/Component.h" #include "gui/interface/Window.h" int LuaComponentCallback::CheckAndAssignArg1(lua_State *L) { if (lua_type(L, 1) != LUA_TNIL) { luaL_checktype(L, 1, LUA_TFUNCTION); } LuaSmartRef::Assign(L, 1); ...
1,766
C++
.cpp
80
19.925
84
0.711986
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
50,451
LuaTextbox.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaTextbox.cpp
#include "LuaTextbox.h" #include "LuaScriptInterface.h" #include "gui/interface/Textbox.h" const char LuaTextbox::className[] = "textbox"; #define method(class, name) {#name, &class::name} Luna<LuaTextbox>::RegType LuaTextbox::methods[] = { method(LuaTextbox, text), method(LuaTextbox, readonly), method(LuaTextbox,...
1,913
C++
.cpp
77
22.844156
94
0.720854
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
50,452
LuaSmartRef.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaSmartRef.cpp
#include "LuaSmartRef.h" #include "LuaScriptInterface.h" void LuaSmartRef::Clear() { auto *lsi = GetLSI(); if (lsi) { luaL_unref(lsi->L, LUA_REGISTRYINDEX, ref); ref = LUA_REFNIL; } } LuaSmartRef::~LuaSmartRef() { Clear(); } void LuaSmartRef::Assign(lua_State *L, int index) { if (index < 0) { index = lu...
532
C++
.cpp
30
15.966667
49
0.688755
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
50,453
LuaSocketDefault.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaSocketDefault.cpp
#include "LuaScriptInterface.h" #include "Misc.h" #include <stdint.h> #include <algorithm> #include <sys/time.h> #include <time.h> namespace LuaSocket { double Now() { struct timeval rt; gettimeofday(&rt, (struct timezone *)NULL); return rt.tv_sec + rt.tv_usec / 1e6; } void Timeout(double timeout) { stru...
676
C++
.cpp
29
21
57
0.669767
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,454
LuaHttp.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaHttp.cpp
#include "LuaScriptInterface.h" #include "client/http/Request.h" #include "client/Client.h" #include "json/json.h" #include "LuaScriptInterface.h" #include "Format.h" #include "Config.h" #include <memory> #include <iostream> class RequestHandle { public: enum RequestType { normal, getAuthToken, }; private: st...
8,415
C++
.cpp
377
18.952255
198
0.622286
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,455
LuaEvent.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaEvent.cpp
#include "LuaScriptInterface.h" #include "common/VariantIndex.h" #include "PowderToySDL.h" static int fregister(lua_State *L) { auto *lsi = GetLSI(); int eventType = luaL_checkinteger(L, 1); luaL_checktype(L, 2, LUA_TFUNCTION); if (eventType < 0 || eventType >= int(lsi->gameControllerEventHandlers.size())) { lu...
2,434
C++
.cpp
82
27.682927
107
0.667802
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
50,456
LuaSocketWindows.cpp
The-Powder-Toy_The-Powder-Toy/src/lua/LuaSocketWindows.cpp
#include "LuaScriptInterface.h" #include "Misc.h" #include <stdint.h> #include <algorithm> #include <windows.h> #include <float.h> namespace LuaSocket { double Now() { FILETIME rt; GetSystemTimeAsFileTime(&rt); return (rt.dwLowDateTime + (uint64_t(rt.dwHighDateTime) << 32) - uint64_t(116444736000000000ULL)) / ...
554
C++
.cpp
22
23.181818
106
0.667925
The-Powder-Toy/The-Powder-Toy
4,543
764
52
GPL-3.0
9/20/2024, 9:26:26 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false