Updated the aliases and switched from u64 to size_t in the for loops
This commit is contained in:
1 parent
e1806bafc2
commit
b95cff5f0c
5 files changed
+16
-12
No files matched your search
+5
-4
@@ -22,6 +22,7 @@
|
||||
#include "engine_build_config.h"
|
||||
#include "reusable_ids.h"
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -467,7 +468,7 @@ void pause_all_instances_of_audio_asset(AssetID id) {
|
||||
|
||||
u64 channel_count = Mix_AllocateChannels(-1);
|
||||
|
||||
for (u64 i = 0; i < channel_count; ++i) {
|
||||
for (size_t i = 0; i < channel_count; ++i) {
|
||||
if (chunk == Mix_GetChunk(i)) {
|
||||
Mix_Pause(i);
|
||||
}
|
||||
@@ -486,7 +487,7 @@ void resume_all_instances_of_audio_asset(AssetID id) {
|
||||
|
||||
u64 channel_count = Mix_AllocateChannels(-1);
|
||||
|
||||
for (u64 i = 0; i < channel_count; ++i) {
|
||||
for (size_t i = 0; i < channel_count; ++i) {
|
||||
if (chunk == Mix_GetChunk(i)) {
|
||||
Mix_Resume(i);
|
||||
}
|
||||
@@ -505,7 +506,7 @@ void stop_all_instances_of_audio_asset(AssetID id) {
|
||||
|
||||
u64 channel_count = Mix_AllocateChannels(-1);
|
||||
|
||||
for (u64 i = 0; i < channel_count; ++i) {
|
||||
for (size_t i = 0; i < channel_count; ++i) {
|
||||
if (chunk == Mix_GetChunk(i)) {
|
||||
Mix_HaltChannel(i);
|
||||
}
|
||||
@@ -524,7 +525,7 @@ void fade_out_all_instances_of_audio_asset(AssetID id, u32 fade_length_in_ms) {
|
||||
|
||||
u64 channel_count = Mix_AllocateChannels(-1);
|
||||
|
||||
for (u64 i = 0; i < channel_count; ++i) {
|
||||
for (size_t i = 0; i < channel_count; ++i) {
|
||||
if (chunk == Mix_GetChunk(i)) {
|
||||
Mix_FadeOutChannel(i, fade_length_in_ms);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user