File: M000012.html

package info (click to toggle)
libxmms-ruby 0.1.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 524 kB
  • ctags: 266
  • sloc: ansic: 687; ruby: 99; makefile: 44
file content (38 lines) | stat: -rw-r--r-- 1,178 bytes parent folder | download
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
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
	<title>playlist (Xmms::Remote)</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
	<pre>/*
 * Return the current playlist.  If a block is given, pass each playlist
 * element to the block.
 *
 * This method raises an Xmms::Error exception if XMMS is not running.
 *
 * Note: Returning the full array can be very slow for large playlists;
 * use the block form instead.
 *
 * Example:
 *   # print out info for each element in the playlist
 *   ary = remote.playlist
 *   ary.each do |ary|
 *     title, file, time = ary
 *     puts &quot;'#{title}' (#{time}ms), #{file}&quot;
 *   end
 *
 *   # print out info for each element in the playlist (using block 
 *   # syntax; much faster)
 *   remote.playlist { |e| puts &quot;'#{e[0]}' (#{e[2]}), #{e[1]}&quot; }
 *
 */
static VALUE xr_pl(VALUE self) {
</pre>
</body>
</html>