mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Check for API mismatch.
This commit is contained in:
parent
5d5865cfd8
commit
b32224d406
@ -79,6 +79,14 @@ static void* audio_ext_init(const char *device, int rate, int latency)
|
||||
goto error;
|
||||
}
|
||||
|
||||
SSNES_LOG("Loaded external audio driver: \"%s\"\n", ext->driver->ident ? ext->driver->ident : "Unknown");
|
||||
|
||||
if (ext->driver->api_version != SSNES_API_VERSION)
|
||||
{
|
||||
SSNES_ERR("API mismatch in external video plugin. SSNES: %d, Plugin: %d ...\n", SSNES_API_VERSION, ext->driver->api_version);
|
||||
goto error;
|
||||
}
|
||||
|
||||
ssnes_audio_driver_info_t info = {
|
||||
.device = device,
|
||||
.sample_rate = rate,
|
||||
|
Loading…
x
Reference in New Issue
Block a user