mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
AGS: Set up digi driver detection
This commit is contained in:
1 parent
95703bb526
commit
2f8cbfcfef
3 files changed
+10
-6
No files matched your search
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "common/scummsys.h"
|
||||
#include "common/algorithm.h"
|
||||
#include "common/endian.h"
|
||||
|
||||
namespace AGS3 {
|
||||
|
||||
@@ -55,6 +56,8 @@ struct _DRIVER_INFO {
|
||||
|
||||
#define AL_FUNC(type, name, args) type name args
|
||||
|
||||
#define SCUMMVM_ID MKTAG('S', 'C', 'V', 'M')
|
||||
|
||||
} // namespace AGS3
|
||||
|
||||
#endif
|
||||
@@ -33,9 +33,15 @@ int digi_card;
|
||||
|
||||
int digi_input_card;
|
||||
|
||||
static byte dummy_driver_data[1] = { 0 };
|
||||
|
||||
BEGIN_DIGI_DRIVER_LIST
|
||||
{ SCUMMVM_ID, &dummy_driver_data, true },
|
||||
END_DIGI_DRIVER_LIST
|
||||
|
||||
|
||||
int detect_digi_driver(int driver_id) {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
SAMPLE *load_wav_pf(PACKFILE *f) {
|
||||
|
||||
@@ -27,11 +27,6 @@
|
||||
|
||||
namespace AGS3 {
|
||||
|
||||
_DRIVER_INFO _digi_driver_list[] = {
|
||||
{ 0, nullptr, 0 }
|
||||
};
|
||||
|
||||
|
||||
int install_sound(int digi, int midi, const char *cfg_path) {
|
||||
// TODO: install_sound
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user