Index: /trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp	(revision 68322)
+++ /trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp	(revision 68323)
@@ -53,4 +53,12 @@
 # include <opus.h>
 #endif
+
+
+/*********************************************************************************************************************************
+*   Defines                                                                                                                      *
+*********************************************************************************************************************************/
+
+#define AVREC_OPUS_HZ_MAX       48000           /** Maximum sample rate (in Hz) Opus can handle. */
+
 
 /*********************************************************************************************************************************
@@ -229,5 +237,5 @@
     /* Opus only supports certain input sample rates in an efficient manner.
      * So make sure that we use those by resampling the data to the requested rate. */
-    if      (uHz > 24000) uHz = 48000;
+    if      (uHz > 24000) uHz = AVREC_OPUS_HZ_MAX;
     else if (uHz > 16000) uHz = 24000;
     else if (uHz > 12000) uHz = 16000;
@@ -304,5 +312,5 @@
 
         /* Calculate the maximum frame size. */
-        pSink->Codec.Opus.csFrameMax = 48000                   /* Maximum sample rate Opus can handle */
+        pSink->Codec.Opus.csFrameMax = AVREC_OPUS_HZ_MAX       /* Maximum sample rate Opus can handle */
                                      * pCodecParms->cChannels; /* Number of channels */
     }
@@ -489,7 +497,7 @@
 
     AVRECCODECPARMS CodecParms;
-    CodecParms.uHz       = 48000;  /** @todo Make this configurable. */
-    CodecParms.cChannels = 2;      /** @todo Make this configurable. */
-    CodecParms.uBitrate  = 196000; /** @todo Make this configurable. */
+    CodecParms.uHz       = AVREC_OPUS_HZ_MAX;  /** @todo Make this configurable. */
+    CodecParms.cChannels = 2;                  /** @todo Make this configurable. */
+    CodecParms.uBitrate  = 196000;             /** @todo Make this configurable. */
 
     int rc = avRecSinkInit(pThis, &pThis->Sink, &ContainerParms, &CodecParms);
