45 #include <QtCore/QUrl> 46 #import <Foundation/NSString.h> 47 #import <Foundation/NSURL.h> 48 #import <AVFoundation/AVAudioPlayer.h> 55 - (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag;
63 if ((
self = [
self init])) {
69 - (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag
97 m_state(
Phonon::LoadingState),
106 if (
m_state == Phonon::PlayingState)
164 d->
player.currentTime = milliseconds/1000.;
230 NSString *urlString = [NSString stringWithCString:source.url().toEncoded().constData()
231 encoding:NSASCIIStringEncoding];
232 NSURL *url = [NSURL URLWithString:urlString];
233 d->
player = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:NULL];
240 [
d->player prepareToPlay];
289 [
d->player setVolume:qMin((float)1.0, (float)newVolume)];
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
AVMediaObject * mediaObject
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
Disconnects signal in object sender from method in object receiver.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...