summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-08-02 23:03:14 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-08-02 23:03:14 +0200
commit0f18d824e01becf14857b2ba1274342597bc5e00 (patch)
treefcaccd17164400a3fb8f4999245e157467c7bbf8
parente51603cd2b0ee1158de462d47a7d466837a0a965 (diff)
downloadvdr-plugin-dxr3-buffer-and-sync-rewrite.tar.gz
vdr-plugin-dxr3-buffer-and-sync-rewrite.tar.bz2
rename audioOut -> audiobuffer-and-sync-rewrite
-rw-r--r--dxr3device.c38
-rw-r--r--dxr3device.h4
2 files changed, 21 insertions, 21 deletions
diff --git a/dxr3device.c b/dxr3device.c
index 3be92ea..e68ef4a 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -48,17 +48,17 @@ cDxr3Device::cDxr3Device() : spuDecoder(NULL), pluginOn(true), vPts(0), scrSet(f
switch (cSettings::instance()->audioDriver()) {
case ALSA:
isyslog("[dxr3-device] using alsa audio driver");
- audioOut = new cAudioAlsa();
+ audio = new cAudioAlsa();
break;
#ifdef PULSEAUDIO
case PA:
isyslog("[dxr3-device] using PulseAudio audio driver");
- audioOut = new cAudioPA();
+ audio = new cAudioPA();
break;
#endif
}
- audioOut->openDevice();
+ audio->openDevice();
decoder = new cDecoder();
// register observer
@@ -67,8 +67,8 @@ cDxr3Device::cDxr3Device() : spuDecoder(NULL), pluginOn(true), vPts(0), scrSet(f
cDxr3Device::~cDxr3Device()
{
- audioOut->releaseDevice();
- delete audioOut;
+ audio->releaseDevice();
+ delete audio;
delete decoder;
releaseDevices();
@@ -130,8 +130,8 @@ bool cDxr3Device::SetPlayMode(ePlayMode PlayMode)
switch (PlayMode) {
case pmNone:
- audioOut->setEnabled(false);
- audioOut->flush();
+ audio->setEnabled(false);
+ audio->flush();
scrSet = false;
// reset pts values
@@ -149,7 +149,7 @@ bool cDxr3Device::SetPlayMode(ePlayMode PlayMode)
break;
case pmAudioVideo:
- audioOut->setEnabled(true);
+ audio->setEnabled(true);
break;
default:
@@ -182,7 +182,7 @@ void cDxr3Device::Clear()
val += TIMESTAMPS_PREBUFFER * 4;
CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_SET, &val));
- audioOut->flush();
+ audio->flush();
cDevice::Clear();
}
@@ -198,7 +198,7 @@ void cDxr3Device::Freeze()
void cDxr3Device::Mute()
{
- audioOut->mute();
+ audio->mute();
cDevice::Mute();
}
@@ -228,7 +228,7 @@ void cDxr3Device::StillPicture(const uchar *Data, int Length)
bool cDxr3Device::Poll(cPoller &Poller, int TimeoutMs)
{
Poller.Add(fdVideo, true);
- audioOut->poll(Poller);
+ audio->poll(Poller);
return Poller.Poll(TimeoutMs);
}
@@ -283,9 +283,9 @@ int cDxr3Device::PlayAudio(const uchar *Data, int Length, uchar Id)
bool isAc3 = ((Id & 0xF0) == 0x80) || Id == 0xbd;
if (!isAc3) {
- decoder->decode(&frame, audioOut);
+ decoder->decode(&frame, audio);
} else {
- decoder->ac3dts(&frame, audioOut);
+ decoder->ac3dts(&frame, audio);
}
return Length;
@@ -346,22 +346,22 @@ void cDxr3Device::SetVideoFormat(bool VideoFormat16_9)
void cDxr3Device::SetVolumeDevice(int Volume)
{
- audioOut->setVolume(Volume);
+ audio->setVolume(Volume);
}
void cDxr3Device::SetAudioChannelDevice(int AudioChannel)
{
- audioOut->setAudioChannel(AudioChannel);
+ audio->setAudioChannel(AudioChannel);
}
int cDxr3Device::GetAudioChannelDevice()
{
- return audioOut->getAudioChannel();
+ return audio->getAudioChannel();
}
void cDxr3Device::SetDigitalAudioDevice(bool on)
{
- audioOut->setDigitalAudio(on);
+ audio->setDigitalAudio(on);
}
cSpuDecoder *cDxr3Device::GetSpuDecoder()
@@ -391,7 +391,7 @@ void cDxr3Device::turnPlugin(bool on)
// get full control over device
claimDevices();
- audioOut->openDevice();
+ audio->openDevice();
// enable pes packet processing
pluginOn = true;
@@ -408,7 +408,7 @@ void cDxr3Device::turnPlugin(bool on)
// release device and give control to somebody else
Tools::WriteInfoToOsd(tr("DXR3: releasing devices"));
releaseDevices();
- audioOut->releaseDevice();
+ audio->releaseDevice();
// disable pes packet processing
pluginOn = false;
diff --git a/dxr3device.h b/dxr3device.h
index 23b242d..0df1053 100644
--- a/dxr3device.h
+++ b/dxr3device.h
@@ -88,7 +88,7 @@ public:
// osd
virtual cSpuDecoder *GetSpuDecoder();
- iAudio *getAudioOutput() const { return audioOut; }
+ iAudio *getAudioOutput() const { return audio; }
void turnPlugin(bool on);
@@ -120,7 +120,7 @@ private:
cMutex mutex;
cDecoder *decoder;
cDxr3SpuDecoder* spuDecoder;
- iAudio *audioOut;
+ iAudio *audio;
bool pluginOn;
em8300_bcs_t bcs;