-
Notifications
You must be signed in to change notification settings - Fork 0
/
render_dummy.c
97 lines (73 loc) · 1.28 KB
/
render_dummy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
void
seturl(RendererCtx *rctx, char *url)
{
(void)rctx;
LOG("setting url to %s", url);
}
int
create_window(RendererCtx *rctx)
{
(void)rctx;
return 1;
}
void
close_window(RendererCtx *rctx)
{
(void)rctx;
}
void
blank_window(RendererCtx *rctx)
{
(void)rctx;
}
int
resize_video(RendererCtx *rctx)
{
(void)rctx;
return 0;
}
void
wait_for_window_resize(RendererCtx *rctx)
{
(void)rctx;
}
void
state_run(RendererCtx *rctx)
{
while (read_cmd(rctx, READCMD_BLOCK) == KEEP_STATE) {
}
}
void
state_load(RendererCtx *rctx)
{
rctx->renderer_state = transitions[CMD_NONE][rctx->renderer_state];
}
void
state_unload(RendererCtx *rctx)
{
SDL_CloseAudioDevice(rctx->audio_devid);
// Unconditional transition to STOP state
rctx->renderer_state = transitions[CMD_NONE][rctx->renderer_state];
}
void
state_engage(RendererCtx *rctx)
{
SDL_PauseAudioDevice(rctx->audio_devid, 0);
rctx->renderer_state = transitions[CMD_NONE][rctx->renderer_state];
}
void
state_disengage(RendererCtx *rctx)
{
SDL_PauseAudioDevice(rctx->audio_devid, 1);
rctx->renderer_state = transitions[CMD_NONE][rctx->renderer_state];
}
void
cmd_seek(RendererCtx *rctx, char *arg, int argn)
{
(void)rctx; (void)arg; (void)argn;
}
void
cmd_vol(RendererCtx *rctx, char *arg, int argn)
{
(void)rctx; (void)arg; (void)argn;
}