annotate src/libaudacious++/plugin.h @ 4424:60f53670478a

fix selection of last item, if total amount of items in playlist is smaller than playlist's capacity
author Tomasz Mon <desowin@gmail.com>
date Sun, 06 Apr 2008 10:57:19 +0200
parents 3aafc46605b4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4137
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
1 /*
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
2 * Copyright (c) 2008 William Pitcock <nenolod@sacredspiral.co.uk>
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
3 *
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
4 * [insert GPL license here later]
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
5 */
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
6
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
7 #ifndef __AUDACIOUSXX__PLUGIN_H_GUARD
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
8 #define __AUDACIOUSXX__PLUGIN_H_GUARD
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
9
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
10 #include <string>
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
11
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
12 namespace Audacious {
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
13
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
14 class Plugin {
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
15 private:
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
16 std::string name;
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
17 std::string description;
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
18
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
19 public:
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
20 Plugin(std::string name_, std::string description_);
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
21 ~Plugin();
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
22 };
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
23
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
24 class VisPlugin : Plugin {
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
25 private:
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
26 int pcm_channels;
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
27 int freq_channels;
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
28
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
29 public:
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
30 VisPlugin(std::string name_, std::string description, int pc, int fc);
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
31 ~VisPlugin();
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
32 };
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
33
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
34 };
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
35
3aafc46605b4 start of a C++ binding on top of PAPI.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
36 #endif