openTRI 0.1
pmp_play.h
1/*
2PMP Mod
3Copyright (C) 2006 jonny
4Copyright (C) 2007 Raphael <raphael@fx-world.org>
5
6Homepage: http://jonny.leffe.dnsalias.com
7 http://wordpress.fx-world.org
8E-mail: jonny@leffe.dnsalias.com
9
10This program is free software; you can redistribute it and/or modify
11it under the terms of the GNU General Public License as published by
12the Free Software Foundation; either version 2 of the License, or
13(at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23*/
24
25/*
26this play the file (av output and basic functions - pause, seek ... )
27*/
28
29
30#ifndef pmp_play_h
31#define pmp_play_h
32
33
34#include <pspthreadman.h>
35#include <pspaudio.h>
36#include <pspaudio_kernel.h>
37#include <pspdisplay.h>
38#include <pspctrl.h>
39#include <psppower.h>
40#include "pmp_decode.h"
41
42
44 {
45 struct pmp_decode_struct decoder;
46
47
48 int audio_reserved;
49
50 SceUID semaphore_can_get;
51 SceUID semaphore_can_put;
52 SceUID semaphore_can_show;
53 SceUID semaphore_show_done;
54
55 SceUID output_thread;
56 SceUID show_thread;
57 SceUID decode_thread;
58
59
60 int playing;
61 int finished;
62 int return_request;
63 char *return_result;
64
65
66 int show;
67
68 unsigned int audio_stream;
69 int audio_channel;
70 unsigned int volume_boost;
71
72 unsigned int subtitle_count;
73 unsigned int subtitle;
74 unsigned int subtitle_format;
75 unsigned int subtitle_fontcolor;
76 unsigned int subtitle_bordercolor;
77 };
78
79
80
81void pmp_play_safe_constructor(struct pmp_play_struct *p);
82char *pmp_play_open(struct pmp_play_struct *p, char *s, int show, int format);
83void pmp_play_close(struct pmp_play_struct *p);
84char *pmp_play_start(volatile struct pmp_play_struct *p);
85char *pmp_play_waitend(struct pmp_play_struct *p);
86
87#endif
Definition pmp_decode.h:60
Definition pmp_play.h:44