File: README

package info (click to toggle)
libvorbisfile-ruby 0.2-8.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze, wheezy
  • size: 84 kB
  • ctags: 35
  • sloc: ansic: 371; makefile: 52; ruby: 45
file content (33 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (2)
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
Ruby extension for libvorbisfile.

libvorbisfile is a decoder library provided with the Ogg Vorbis
distribution. See http://xiph.org/ogg/vorbis/ for details.

The API of this extension is virtually identical to that of
vorbisfile.h, with a couple of exceptions:

* Prefixes have been removed (ov_open -> open).
* The OggVorbis_File parameter is removed, as the VorbisFile object
  encapsulates this.

You can read the vorbisfile API at the above URL.

Installation:

./configure
make
make install

Note that you must pass an existing (and opened) IO object to
VorbisFile::open(). This means you are not restricted to files -
reading from (e.g.) a socket is fine.

See test.rb for an example.

Note that Vorbis comments are in UTF-8 and test.rb uses iconv to convert
back to latin-1. Is there a more portable way of doing this ?

Feedback welcome.

Rik Hemsley (rikkus) <rik@kde.org>