- Mix_Chunk * sound_sample_files[] = {
- PUSH_LT(lt, Mix_LoadWAV("./sounds/nothing.wav"), Mix_FreeChunk),
- PUSH_LT(lt, Mix_LoadWAV("./sounds/something.wav"), Mix_FreeChunk)
- };
- const size_t sound_sample_files_count = sizeof(sound_sample_files) / sizeof(Mix_Chunk*);
-
- sound_samples_t *sound_samples =
- PUSH_LT(
- lt,
- create_sound_samples(
- sound_sample_files,
- sound_sample_files_count,
- 0, MIX_CHANNELS - 1),
- destroy_sound_samples);
- if (sound_samples == NULL) {
- print_current_error_msg("Could not create sound medium");
- RETURN_LT(lt, -1);
- }
-