~ubuntu-branches/ubuntu/breezy/kdemultimedia/breezy

« back to all changes in this revision

Viewing changes to oggvorbis_artsplugin/oggPlayObject_impl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-03-24 04:48:58 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050324044858-8ff88o9jxej6ii3d
Tags: 4:3.4.0-0ubuntu3
Add kubuntu_02_hide_arts_menu_entries.diff to hide artsbuilder and artscontrol k-menu entries

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: oggPlayObject_impl.cpp,v 1.2 2001/04/05 12:07:30 garbanzo Exp $ */
 
1
/* $Id: oggPlayObject_impl.cpp,v 1.4 2002/10/27 01:10:28 pfeiffer Exp $ */
2
2
 
3
3
#include <sys/types.h>
4
4
#include <sys/ipc.h>
59
59
        semctl(buflen_sem, 0, IPC_RMID, foo);
60
60
}
61
61
 
62
 
bool oggPlayObject_impl::loadMedia(const string &filename)
 
62
bool oggPlayObject_impl::loadMedia(const std::string &filename)
63
63
{
64
64
        halt(); // stop playing any previous stream
 
65
        currentFile = filename;
65
66
 
66
67
        //throw off a process to handle the decoding
67
68
        //fill the buffers first...
163
164
        return true;
164
165
}
165
166
 
166
 
string oggPlayObject_impl::description()
 
167
std::string oggPlayObject_impl::description()
167
168
{
168
169
        return "ogg/vorbis artsplugin - this is my w00t!";
169
170
}
192
193
        return static_cast<poCapabilities>(capPause|capSeek);
193
194
}
194
195
 
195
 
string oggPlayObject_impl::mediaName() {
196
 
        return "";
 
196
std::string oggPlayObject_impl::mediaName() {
 
197
        return currentFile;
197
198
}
198
199
 
199
200
poState oggPlayObject_impl::state() {