mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-03 06:45:59 +02:00
commit
1846c61317
2 changed files with 9 additions and 9 deletions
|
@ -6042,15 +6042,15 @@ 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,
|
||||||
out SDL_AudioSpec obtained,
|
out SDL_AudioSpec obtained,
|
||||||
int32 allowed_changes
|
int32 allowed_changes
|
||||||
);
|
);
|
||||||
|
|
||||||
struct AudioDeviceID : uint32
|
public struct AudioDeviceID : uint32
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue