Core commit. Compile and run on the OpenPandora
[mupen64plus-pandora.git] / source / mupen64plus-core / src / plugin / dummy_audio.c
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  *   Mupen64plus - dummy_audio.c                                           *
3  *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
4  *   Copyright (C) 2008-2009 Richard Goedeken                              *
5  *                                                                         *
6  *   This program is free software; you can redistribute it and/or modify  *
7  *   it under the terms of the GNU General Public License as published by  *
8  *   the Free Software Foundation; either version 2 of the License, or     *
9  *   (at your option) any later version.                                   *
10  *                                                                         *
11  *   This program is distributed in the hope that it will be useful,       *
12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14  *   GNU General Public License for more details.                          *
15  *                                                                         *
16  *   You should have received a copy of the GNU General Public License     *
17  *   along with this program; if not, write to the                         *
18  *   Free Software Foundation, Inc.,                                       *
19  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
20  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
22 #include <stdlib.h>
23
24 #include "api/m64p_types.h"
25 #include "plugin.h"
26 #include "dummy_audio.h"
27
28 m64p_error dummyaudio_PluginGetVersion(m64p_plugin_type *PluginType, int *PluginVersion,
29                                        int *APIVersion, const char **PluginNamePtr, int *Capabilities)
30 {
31     if (PluginType != NULL)
32         *PluginType = M64PLUGIN_AUDIO;
33
34     if (PluginVersion != NULL)
35         *PluginVersion = 0x00010000;
36
37     if (APIVersion != NULL)
38         *APIVersion = AUDIO_API_VERSION;
39
40     if (PluginNamePtr != NULL)
41         *PluginNamePtr = "Mupen64Plus-NoAudio";
42
43     if (Capabilities != NULL)
44         *Capabilities = 0;
45
46     return M64ERR_SUCCESS;
47 }
48
49 void dummyaudio_AiDacrateChanged(int SystemType)
50 {
51     return;
52 }
53
54 void dummyaudio_AiLenChanged(void)
55 {
56     return;
57 }
58
59 int dummyaudio_InitiateAudio(AUDIO_INFO Audio_Info)
60 {
61     return 1;
62 }
63
64 int dummyaudio_RomOpen(void)
65 {
66     return 1;
67 }
68
69 void dummyaudio_RomClosed(void)
70 {
71     return;
72 }
73
74 void dummyaudio_ProcessAList(void)
75 {
76     return;
77 }
78
79 void dummyaudio_SetSpeedFactor(int percent)
80 {
81     return;
82 }
83
84 void dummyaudio_VolumeUp(void)
85 {
86     return;
87 }
88
89 void dummyaudio_VolumeDown(void)
90 {
91     return;
92 }
93
94 int dummyaudio_VolumeGetLevel(void)
95 {
96     return 0;
97 }
98
99 void dummyaudio_VolumeSetLevel(int level)
100 {
101     return;
102 }
103
104 void dummyaudio_VolumeMute(void)
105 {
106     return;
107 }
108
109 const char *dummyaudio_VolumeGetString(void)
110 {
111     return "disabled";
112 }