File: OGGEditor.h

package info (click to toggle)
poe.app 0.5.1-5
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 568 kB
  • ctags: 55
  • sloc: objc: 1,272; ansic: 438; makefile: 54; sh: 17
file content (73 lines) | stat: -rw-r--r-- 2,217 bytes parent folder | download | duplicates (5)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// modified by Rob Burns <rburns@softhome.net>
/*
**  OGGEditor.h
**
**  Copyright (c) 2002
**
**  Author: Yen-Ju  <yjchenx@hotmail.com>
**
**  This program is free software; you can redistribute it and/or modify
**  it under the terms of the GNU Lesser General Public License as published by
**  the Free Software Foundation; either version 2 of the License, or
**  (at your option) any later version.
**
**  This program is distributed in the hope that it will be useful,
**  but WITHOUT ANY WARRANTY; without even the implied warranty of
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**  GNU General Public License for more details.
**
**  You should have received a copy of the GNU Lesser General Public License
**  along with this program; if not, write to the Free Software
**  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef _OGGEDITOR_H_
#define _OGGEDITOR_H_

#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
#include <vorbis/vorbisfile.h>
#include "Util.h"

@interface OGGEditor: NSObject
{
  OggVorbis_File vf;
  FILE *in;
  NSMutableArray *_comments;
  NSString *_fname;
  NSMutableDictionary *_info;
}

- (BOOL) writeToFile: (NSString *) filename;
- (id) initWithFile: (NSString *) filename;
- (NSNumber *) decodedLength;
- (NSNumber *) lowerOfBitrate; /* double, in kb */
- (NSNumber *) upperOfBitrate; /* double, in kb */
- (NSNumber *) nominalOfBitrate; /* double, in kb */
- (NSNumber *) rate; /* float, in KHz */
- (NSNumber *) channels; /* int */
- (NSNumber *) seconds;
- (NSString *) filename;
- (NSArray *) comments;

- (void) addComment: (NSMutableDictionary *)comment;
- (void) deleteCommentAtIndex: (int) index;

// NSTableView data source protocol methods
//******************************************

- (int) numberOfRowsInTableView: (NSTableView *)aTableView;

- (id)            tableView: (NSTableView *)aTableView
  objectValueForTableColumn: (NSTableColumn *)aTableColumn
                        row: (int)rowIndex;

- (void) tableView: (NSTableView *)aTableView 
    setObjectValue: (id)anObject
    forTableColumn: (NSTableColumn *)aTableColumn 
               row: (int)rowIndex;

@end

#endif // _OGGEDITOR_H_