Files
armorpaint/base/sources/backends/wasm_video.c
T

58 lines
1.4 KiB
C
Raw Normal View History

2025-02-26 08:47:09 +01:00
#include <iron_video.h>
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_video_init(iron_video_t *video, const char *filename) {}
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_video_destroy(iron_video_t *video) {}
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_video_play(iron_video_t *video, bool loop) {}
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_video_pause(iron_video_t *video) {}
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_video_stop(iron_video_t *video) {}
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
int iron_video_width(iron_video_t *video) {
2024-11-10 22:11:29 +01:00
return 256;
}
2025-03-09 17:02:12 +01:00
int iron_video_height(iron_video_t *video) {
2024-11-10 22:11:29 +01:00
return 256;
}
2025-06-19 19:55:16 +02:00
gpu_texture_t *iron_video_current_image(iron_video_t *video) {
2024-11-10 22:11:29 +01:00
return NULL;
}
2025-03-09 17:02:12 +01:00
double iron_video_duration(iron_video_t *video) {
2024-11-10 22:11:29 +01:00
return 0.0;
}
2025-03-09 17:02:12 +01:00
double iron_video_position(iron_video_t *video) {
2024-11-10 22:11:29 +01:00
return 0.0;
}
2025-03-09 17:02:12 +01:00
bool iron_video_finished(iron_video_t *video) {
2024-11-10 22:11:29 +01:00
return false;
}
2025-03-09 17:02:12 +01:00
bool iron_video_paused(iron_video_t *video) {
2024-11-10 22:11:29 +01:00
return false;
}
2025-03-09 17:02:12 +01:00
void iron_video_update(iron_video_t *video, double time) {}
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_internal_video_sound_stream_init(iron_internal_video_sound_stream_t *stream, int channel_count, int frequency) {}
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_internal_video_sound_stream_destroy(iron_internal_video_sound_stream_t *stream) {}
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_internal_video_sound_stream_insert_data(iron_internal_video_sound_stream_t *stream, float *data, int sample_count) {}
2024-11-10 22:11:29 +01:00
static float samples[2] = {0};
2025-03-09 17:02:12 +01:00
float *iron_internal_video_sound_stream_next_frame(iron_internal_video_sound_stream_t *stream) {
2024-11-10 22:11:29 +01:00
return samples;
}
2025-03-09 17:02:12 +01:00
bool iron_internal_video_sound_stream_ended(iron_internal_video_sound_stream_t *stream) {
2024-11-10 22:11:29 +01:00
return true;
}