[mythtv] Patch: VolumeControl update

Ed Wildgoose lists at wildgooses.com
Sun Oct 31 09:34:57 UTC 2004


>> Tried the patch to see if it would fix my OSS prebuffer/ ALSA Av sync
>> issue but couldn't get it to compile.
>> I get an error compiling transcode. An include missing? Tried adding
>> audiooutputbase.h but that's not it.
>> This is wat I get :
>>  
>>
>
> Try Ed's transcode patch from last week. Seems Ed forgot to include it 
> in the patch:


Bah!  Keep forgetting about transcode...

There is a slightly different patch needed from last week.  See attached 
for the transcode patch...

Sorry about that!!

Ed W
-------------- next part --------------
Index: programs/mythtranscode/transcode.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythtranscode/transcode.cpp,v
retrieving revision 1.10
diff -u -r1.10 transcode.cpp
--- programs/mythtranscode/transcode.cpp	13 Oct 2004 01:49:55 -0000	1.10
+++ programs/mythtranscode/transcode.cpp	31 Oct 2004 09:33:20 -0000
@@ -129,6 +129,54 @@
         return last_audiotime;
     }
 
+    virtual int GetVolumeChannel(int channel)
+    { 
+        // Do nothing
+        return 100;
+    }
+    virtual void SetVolumeChannel(int channel, int volume) 
+    {
+        // Do nothing
+    }
+    virtual void SetVolumeAll(int volume)
+    {
+        // Do nothing
+    }
+    
+
+    virtual int GetCurrentVolume(void)
+    { 
+        // Do nothing
+        return 100;
+    }
+    virtual void SetCurrentVolume(int value) 
+    {
+        // Do nothing
+    }
+    virtual void AdjustCurrentVolume(int change) 
+    {
+        // Do nothing
+    }
+    virtual void SetMute(bool on) 
+    {
+        // Do nothing
+    }
+    virtual void ToggleMute(void) 
+    {
+        // Do nothing
+    }
+    virtual kMuteState GetMute(void) 
+    {
+        // Do nothing
+        return MUTE_OFF;
+    }
+    virtual kMuteState IterateMutedChannels(void) 
+    {
+        // Do nothing
+        return MUTE_OFF;
+    }
+    
+
     int bufsize;
     unsigned char *audiobuffer;
     int audiobuffer_len, channels, bits, bytes_per_sample, eff_audiorate;


More information about the mythtv-dev mailing list