Debian Codegraph @

garglk/sndnull.cpp

raw symbols SCIP
1 // Copyright (C) 2006-2009 by Tor Andersson.
2 //
3 // This file is part of Gargoyle.
4 //
5 // Gargoyle is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // Gargoyle is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with Gargoyle; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19 #include "glk.h"
20 #include "garglk.h"
21
22 // The whole sound-channel situation is very simple for us;
23 // we don't support it.
24
25 void gli_initialize_sound()
26 {
27 }
28
29 #ifdef GLK_MODULE_SOUND
30
31 gidispatch_rock_t gli_sound_get_channel_disprock(const channel_t *chan)
32 {
33 return (gidispatch_rock_t) {
34 .num = 0
35 };
36 }
37
38 schanid_t glk_schannel_create(glui32 rock)
39 {
40 return nullptr;
41 }
42
43 schanid_t glk_schannel_create_ext(glui32 rock, glui32 volume)
44 {
45 return nullptr;
46 }
47
48 void glk_schannel_destroy(schanid_t chan)
49 {
50 }
51
52 schanid_t glk_schannel_iterate(schanid_t chan, glui32 *rockptr)
53 {
54 if (rockptr != nullptr) {
55 *rockptr = 0;
56 }
57 return nullptr;
58 }
59
60 glui32 glk_schannel_get_rock(schanid_t chan)
61 {
62 gli_strict_warning("schannel_get_rock: invalid id.");
63 return 0;
64 }
65
66 glui32 glk_schannel_play(schanid_t chan, glui32 snd)
67 {
68 gli_strict_warning("schannel_play: invalid id.");
69 return 0;
70 }
71
72 glui32 glk_schannel_play_ext(schanid_t chan, glui32 snd, glui32 repeats,
73 glui32 notify)
74 {
75 gli_strict_warning("schannel_play_ext: invalid id.");
76 return 0;
77 }
78
79 glui32 glk_schannel_play_multi(schanid_t *chanarray, glui32 chancount,
80 glui32 *sndarray, glui32 soundcount, glui32 notify)
81 {
82 gli_strict_warning("schannel_play_multi: invalid id.");
83 return 0;
84 }
85
86 void glk_schannel_stop(schanid_t chan)
87 {
88 gli_strict_warning("schannel_stop: invalid id.");
89 }
90
91 void glk_schannel_pause(schanid_t chan)
92 {
93 gli_strict_warning("schannel_pause: invalid id.");
94 }
95
96 void glk_schannel_unpause(schanid_t chan)
97 {
98 gli_strict_warning("schannel_unpause: invalid id.");
99 }
100
101 void glk_schannel_set_volume(schanid_t chan, glui32 vol)
102 {
103 gli_strict_warning("schannel_set_volume: invalid id.");
104 }
105
106 void glk_schannel_set_volume_ext(schanid_t chan, glui32 vol,
107 glui32 duration, glui32 notify)
108 {
109 gli_strict_warning("schannel_set_volume_ext: invalid id.");
110 }
111
112 void glk_sound_load_hint(glui32 snd, glui32 flag)
113 {
114 gli_strict_warning("schannel_sound_load_hint: invalid id.");
115 }
116
117 void garglk_zbleep(glui32)
118 {
119 }
120
121 #endif // GLK_MODULE_SOUND