File: pdogg.c

package info (click to toggle)
pd-pdogg 0.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 372 kB
  • ctags: 719
  • sloc: ansic: 3,977; makefile: 296
file content (46 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download | duplicates (3)
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
#ifndef VERSION
#define VERSION "0.25"
#endif

#include <m_pd.h>


#ifndef __DATE__ 
#define __DATE__ "without using a gnu compiler"
#endif

typedef struct _pdogg
{
     t_object x_obj;
} t_pdogg;

static t_class* pdogg_class;

// tilde objects
void oggamp_tilde_setup();
void oggcast_tilde_setup();
void oggread_tilde_setup();
void oggwrite_tilde_setup();

static void* pdogg_new(t_symbol* s) {
    t_pdogg *x = (t_pdogg *)pd_new(pdogg_class);
    return (x);
}

void pdogg_setup(void) 
{
    pdogg_class = class_new(gensym("pdogg"), (t_newmethod)pdogg_new, 0,
    	sizeof(t_pdogg), 0,0);

     oggamp_tilde_setup();
     oggcast_tilde_setup();
     oggread_tilde_setup();
     oggwrite_tilde_setup();

     post("\n       pdogg :: Ogg Vorbis library for pure-data");
     post("       written by Olaf Matthes <olaf.matthes@gmx.de>");
     post("       version: "VERSION);
     post("       compiled: "__DATE__", using Ogg Vorbis library 1.0");
     post("       home: http://www.akustische-kunst.org/puredata/pdogg/");
     post("       including: oggamp~0.2f, oggcast~0.2h, oggread~0.2c, oggwrite~0.1c\n");
}