summaryBlackLine.setSize(summary.getWidth(), 4);
summary.add(&summaryBlackLine);
- sAspectRatio.setPosition(osd.getWidth() - 90, clock.getY2()+4);
- sAspectRatio.nextColour = Colour::YELLOW;
+ sAspectRatio.setPosition(osd.getWidth() - 90, 40);
+ sAspectRatio.nextColour = Colour::SELECTHIGHLIGHT;
sAspectRatio.setVisible(false);
osd.add(&sAspectRatio);
- bufferBar.setPosition(osd.getWidth() - 94, 70);
- bufferBar.setSize(50, 20);
+ bufferBar.setPosition(osd.getWidth() - 90, 70);
+ bufferBar.setSize(40, 20);
bufferBar.setVisible(true);
osd.add(&bufferBar);
+ sAudioChannels.setPosition(osd.getWidth() - 130, 40);
+ sAudioChannels.nextColour = Colour::SELECTHIGHLIGHT;
+ sAudioChannels.setVisible(false);
+ osd.add(&sAudioChannels);
+
// FIXME painful
Region r1 = summary.getRegionR();
Region r2 = osd.getRegionR();
// Blank out the symbols
sAspectRatio.setVisible(false);
bufferBar.setPercent(0);
+ sAudioChannels.setVisible(false);
return true;
}
bufferBar.setVisible(true);
bufferBar.draw();
Region r;
- bufferBar.getRootBoxRegion(&r);
+ bufferBar.getRootBoxRegion(&r); ///////// FIXME !!!
BoxStack::getInstance()->update(this, &r);
+
+ if (preBuffering == 100)
+ {
+ doAudioChannelSymbol();
+ }
}
}
}
}
}
+void VVideoLiveTV::doAudioChannelSymbol()
+{
+ // get the doobery
+ Channel* currentChannel = (*chanList)[osdChannelIndex];
+
+ bool multiAudio = false;
+ #if WIN32
+ if (currentChannel->numDPids > 1) multiAudio = true;
+ #endif
+ if (currentChannel->numAPids > 1) multiAudio = true;
+
+ // draw the doobery
+
+ if (multiAudio) sAudioChannels.nextSymbol = WSymbol::MULTIAUDIO;
+ else sAudioChannels.nextSymbol = WSymbol::SINGLEAUDIO;
+ sAudioChannels.setVisible(true);
+
+ if (osd.getVisible())
+ {
+ sAudioChannels.draw();
+ Region r;
+ sAudioChannels.getRootBoxRegion(&r); ///////// FIXME !!!
+ // Fix this n'all.
+ r.w = 32;
+ r.h = 16;
+ BoxStack::getInstance()->update(this, &r);
+ }
+}
+
UINT VVideoLiveTV::upChannel(UINT index)
{
if (index == (chanList->size() - 1)) // at the end
#include "colour.h"
-UCHAR WSymbol::widths[] = { 2, 2, 4, 4, 1, 1, 3, 3, 3, 3, 3, 4, 4, 2, 2, 3, 5, 5, 4, 4, 2, 2, 5, 5};
-UCHAR WSymbol::heights[] = { 8, 8, 12, 12, 24, 4, 18, 18, 18, 18, 18, 30, 30, 16, 16, 18, 18, 18, 16, 16, 8, 8, 16, 16};
+UCHAR WSymbol::widths[] = { 2, 2, 4, 4, 1, 1, 3, 3, 3, 3, 3, 4, 4, 2, 2, 3, 5, 5, 4, 4, 2, 2, 5, 5, 4, 4};
+UCHAR WSymbol::heights[] = { 8, 8, 12, 12, 24, 4, 18, 18, 18, 18, 18, 30, 30, 16, 16, 18, 18, 18, 16, 16, 8, 8, 16, 16, 16, 16};
UCHAR WSymbol::symbols[] = {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+
+
+
+
+
+
+
+
+
+
+/*
+00000000 00001111 11110000 00000000
+00000000 00001111 11110000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00000001 10000000 00000000
+00000000 00001111 11110000 00000000
+00000000 00001111 11110000 00000000
+*/
+
+0x00, 0x0F, 0xF0, 0x00,
+0x00, 0x0F, 0xF0, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x01, 0x80, 0x00,
+0x00, 0x0F, 0xF0, 0x00,
+0x00, 0x0F, 0xF0, 0x00,
+
+
+/*
+11111111 00000011 11111100 11111111
+11111111 00000011 11111100 11111111
+00011000 00000000 01100000 00011000
+00011000 00000000 01100000 00011000
+00011000 00000000 01100000 00011000
+00011000 00000000 01100000 00011000
+00011000 00000000 01100000 00011000
+00011000 11111100 01100000 00011000
+
+00011000 11111100 01100000 00011000
+00011000 00000000 01100000 00011000
+00011000 00000000 01100000 00011000
+00011000 00000000 01100000 00011000
+00011000 00000000 01100000 00011000
+00011000 00000000 01100000 00011000
+11111111 00000011 11111100 11111111
+11111111 00000011 11111100 11111111
+*/
+
+0xFF, 0x03, 0xFC, 0xFF,
+0xFF, 0x03, 0xFC, 0xFF,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0xFC, 0x60, 0x18,
+
+0x18, 0xFC, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0x18, 0x00, 0x60, 0x18,
+0xFF, 0x03, 0xFC, 0xFF,
+0xFF, 0x03, 0xFC, 0xFF,
+
+
+
+
+
+
+
+
};
WSymbol::WSymbol()