annotate src/CoreAudio/coreaudio.c @ 3203:f5456241bff9 default tip

changed include path from audacious to audlegacy.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 10 Nov 2009 05:19:25 +0900
parents 372ef3b764fd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
1 /* XMMS - Cross-platform multimedia player
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
2 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
3 *
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
7 * (at your option) any later version.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
8 *
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
12 * GNU General Public License for more details.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
13 *
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
2835
f1b6f1b2cdb3 fixed FSF address
Andrew O. Shadoura <bugzilla@tut.by>
parents: 1950
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
17 */
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
18 #include <glib.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
19
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
20 #include "coreaudio.h"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
21
2971
3134a0987162 - changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2835
diff changeset
22 #include <audlegacy/plugin.h>
3134a0987162 - changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2835
diff changeset
23 #include <audlegacy/i18n.h>
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
24
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
25 OutputPlugin osx_op =
1103
c087e8461bab [svn] - coreaudio: convert to plugin API v2
nenolod
parents: 527
diff changeset
26 {
1713
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
27 .description = "CoreAudio Output Plugin", /* Description */
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
28 .init = osx_init,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
29 .about = osx_about,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
30 .configure = osx_configure,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
31 .get_volume = osx_get_volume,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
32 .set_volume = osx_set_volume,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
33 .open_audio = osx_open,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
34 .write_audio = osx_write,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
35 .close_audio = osx_close,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
36 .flush = osx_flush,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
37 .pause = osx_pause,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
38 .buffer_free = osx_free,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
39 .buffer_playing = osx_playing,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
40 .output_time = osx_get_output_time,
fd9e63473e56 CoreAudio: C99
William Pitcock <nenolod@atheme.org>
parents: 1395
diff changeset
41 .written_time = osx_get_written_time,
3069
372ef3b764fd port to new API
William Pitcock <nenolod@atheme.org>
parents: 2971
diff changeset
42 .probe_priority = 1,
1103
c087e8461bab [svn] - coreaudio: convert to plugin API v2
nenolod
parents: 527
diff changeset
43 };
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
44
1103
c087e8461bab [svn] - coreaudio: convert to plugin API v2
nenolod
parents: 527
diff changeset
45 OutputPlugin *coreaudio_oplist[] = { &osx_op, NULL };
c087e8461bab [svn] - coreaudio: convert to plugin API v2
nenolod
parents: 527
diff changeset
46
1395
761e17b23e0c added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents: 1103
diff changeset
47 DECLARE_PLUGIN(coreaudio, NULL, NULL, NULL, coreaudio_oplist, NULL, NULL, NULL, NULL);