1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-03 06:45:59 +02:00

Merge pull request #1857 from sere3925sere/master

Updated SDL2 headers
This commit is contained in:
Brian Fiete 2023-06-03 09:46:13 -04:00 committed by GitHub
commit 1846c61317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -6042,7 +6042,7 @@ namespace SDL2
/* uint32 refers to an SDL_AudioDeviceID */ /* uint32 refers to an SDL_AudioDeviceID */
[LinkName("SDL_OpenAudioDevice")] [LinkName("SDL_OpenAudioDevice")]
private static extern AudioDeviceID OpenAudioDevice( public static extern AudioDeviceID OpenAudioDevice(
char8* device, char8* device,
int32 iscapture, int32 iscapture,
ref SDL_AudioSpec desired, ref SDL_AudioSpec desired,
@ -6050,7 +6050,7 @@ namespace SDL2
int32 allowed_changes int32 allowed_changes
); );
struct AudioDeviceID : uint32 public struct AudioDeviceID : uint32
{ {
} }

View file

@ -290,11 +290,11 @@ namespace SDL2
/* chunk refers to a Mix_Chunk* */ /* chunk refers to a Mix_Chunk* */
[LinkName("Mix_PlayChannel")] [LinkName("Mix_PlayChannel")]
public static extern int32 PlayChannel( public static int32 PlayChannel(
int32 channel, int32 channel,
Chunk* chunk, Chunk* chunk,
int32 loops int32 loops
); ) => PlayChannelTimed(channel, chunk, loops, -1);
[LinkName("Mix_PlayMusic")] [LinkName("Mix_PlayMusic")]
public static extern int32 PlayMusic(Music* music, int32 loops); public static extern int32 PlayMusic(Music* music, int32 loops);