Skip to content

Commit

Permalink
refactor: 使用 <Digitalv.h> 中定义的宏而非自定义
Browse files Browse the repository at this point in the history
  • Loading branch information
yixy-only committed Apr 28, 2024
1 parent f3c8c25 commit 092a6a3
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions src/music.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,13 @@ MUSIC类的定义
#include <Digitalv.h>

#ifndef MUSIC_ASSERT_TRUE
#ifdef _DEBUG
#include <cassert>
#define MUSIC_ASSERT_TRUE(e) assert((e) != MUSIC_ERROR)
#else
#define MUSIC_ASSERT_TRUE(e) (void(0))
# ifdef _DEBUG
# include <cassert>
# define MUSIC_ASSERT_TRUE(e) assert((e) != MUSIC_ERROR)
# else
# define MUSIC_ASSERT_TRUE(e) (void(0))
# endif
#endif
#endif

// #include <Digitalv.h>

typedef struct
{
DWORD_PTR dwCallback;
DWORD dwItem;
DWORD dwValue;
DWORD dwOver;
LPWSTR lpstrAlgorithm;
LPWSTR lpstrQuality;
} MCI_DGV_SETAUDIO_PARMSW;

#ifndef MCI_DGV_SETAUDIO_VOLUME
#define MCI_DGV_SETAUDIO_ITEM 0x00800000L
#define MCI_DGV_SETAUDIO_VALUE 0x01000000L
#define MCI_DGV_SETAUDIO_VOLUME 0x00004002L
#define MCI_SETAUDIO 0x0873
#endif
// end of Digitalv.h

namespace ege
{
Expand Down

0 comments on commit 092a6a3

Please sign in to comment.