]> git.vomp.tv Git - vompclient-marten.git/commitdiff
*** empty log message ***
authorChris Tallon <chris@vomp.tv>
Sat, 3 May 2008 16:03:47 +0000 (16:03 +0000)
committerChris Tallon <chris@vomp.tv>
Sat, 3 May 2008 16:03:47 +0000 (16:03 +0000)
command.cc
vvideolivetv.cc
vvideolivetv.h
wsymbol.cc
wsymbol.h

index 6710e944b6fb84c0063a72d619b96af4f7f1fa6a..a23e1ce8896b1040761f301adcd1f9c2af828391 100644 (file)
@@ -886,10 +886,10 @@ void Command::doJustConnected(VConnect* vconnect)
     boxstack->update(vw);
 
     // Enter pre-keys here
-//    handleCommand(Remote::OK);
-//    handleCommand(Remote::ONE);
-//    handleCommand(Remote::ZERO);
-//    handleCommand(Remote::OK);
+    handleCommand(Remote::OK);
+    handleCommand(Remote::ONE);
+    handleCommand(Remote::SIX);
+    handleCommand(Remote::OK);
 //    handleCommand(Remote::UP);
 //    handleCommand(Remote::PLAY);
 //    handleCommand(Remote::DOWN);
index 97a47fe178d148bc2ed5b40270ac47cea6ed0497..30dcaf22bbcf194ddc60a3de7618731a12de5013 100644 (file)
@@ -207,16 +207,21 @@ VVideoLiveTV::VVideoLiveTV(ChannelList* tchanList, ULONG initialChannelNumber, V
   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();
@@ -804,6 +809,7 @@ bool VVideoLiveTV::channelChange(UCHAR changeType, UINT newData)
   // Blank out the symbols
   sAspectRatio.setVisible(false);
   bufferBar.setPercent(0);
+  sAudioChannels.setVisible(false);
   
   return true;
 }
@@ -940,14 +946,48 @@ void VVideoLiveTV::processMessage(Message* m)
           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
index c009154c3f2b5d9ddc575209de8073853d82dc2a..4c65dff05d7273131e1c1beb9a34cb4c9a640320 100644 (file)
@@ -106,6 +106,7 @@ class VVideoLiveTV : public Boxx, public TimerReceiver
     void delData();
     void setNowNextData();
     void setSummaryData();
+    void doAudioChannelSymbol();
     
     VAudioSelector* vas;
     
@@ -128,6 +129,7 @@ class VVideoLiveTV : public Boxx, public TimerReceiver
     WTextbox textBlue;
     WSymbol sAspectRatio;
     WProgressBar bufferBar;
+    WSymbol sAudioChannels;
     
     Boxx summary;
     WTextbox textSummary;
index 6d124760ea2c9e572b10d8afcd613d8056ca4978..4f693e09c2b67440372f47996b7299d1bd819414 100644 (file)
@@ -22,8 +22,8 @@
 
 #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[] = {
 
@@ -912,6 +912,100 @@ 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()
index d11080219080faf8863c1a058c5bc4c96f1c9d97..2a6c940aca55c4a635f4bada81783d5c284f8296 100644 (file)
--- a/wsymbol.h
+++ b/wsymbol.h
@@ -59,6 +59,8 @@ class WSymbol : public Boxx
     const static UCHAR SMALLDOWN = 21;
     const static UCHAR VIDEOASPECT43 = 22;
     const static UCHAR VIDEOASPECT169 = 23;
+    const static UCHAR SINGLEAUDIO = 24;
+    const static UCHAR MULTIAUDIO = 25;
     
   private:
     static UCHAR symbols[];