VirtualBox

Ignore:
Timestamp:
Aug 18, 2022 8:01:23 AM (2 years ago)
Author:
vboxsync
Message:

Recording: Removed support for Opus. bugref:10275

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/RecordingInternals.h

    r96284 r96285  
    3939#endif /* VBOX_WITH_LIBVPX */
    4040
    41 #ifdef VBOX_WITH_LIBOPUS
    42 # include <opus.h>
    43 #endif
    44 
    4541#ifdef VBOX_WITH_LIBVORBIS
    4642# include "vorbis/vorbisenc.h"
     
    5147*   Defines                                                                                                                      *
    5248*********************************************************************************************************************************/
    53 #define VBOX_RECORDING_OPUS_HZ_MAX               48000   /**< Maximum sample rate (in Hz) Opus can handle. */
    54 #define VBOX_RECORDING_OPUS_FRAME_MS_DEFAULT     20      /**< Default Opus frame size (in ms). */
    55 
    5649#define VBOX_RECORDING_VORBIS_HZ_MAX             48000   /**< Maximum sample rate (in Hz) Vorbis can handle. */
    5750#define VBOX_RECORDING_VORBIS_FRAME_MS_DEFAULT   20      /**< Default Vorbis frame size (in ms). */
     
    206199    /** Time (in ms) the encoder expects us to send data to encode.
    207200     *
    208      *  For Opus, valid frame sizes are:
    209      *  ms           Frame size
    210      *  2.5          120
    211      *  5            240
    212      *  10           480
    213      *  20 (Default) 960
    214      *  40           1920
    215      *  60           2880
    216      *
    217201     *  For Vorbis, valid frame sizes are powers of two from 64 to 8192 bytes.
    218202     */
     
    247231#endif /* VBOX_WITH_LIBVPX */
    248232
    249 #ifdef VBOX_WITH_LIBOPUS
    250 /**
    251  * Opus encoder state (needs libvorbis).
    252  */
    253 typedef struct RECORDINGCODECOPUS
    254 {
    255     /** Encoder we're going to use. */
    256     OpusEncoder    *pEnc;
    257 } RECORDINGCODECOPUS;
    258 /** Pointer to an Opus encoder state. */
    259 typedef RECORDINGCODECOPUS *PRECORDINGCODECOPUS;
    260 #endif /* VBOX_WITH_LIBOPUS */
    261 
    262233#ifdef VBOX_WITH_LIBVORBIS
    263234/**
     
    314285    union
    315286    {
    316 # ifdef VBOX_WITH_LIBOPUS
    317         RECORDINGCODECOPUS      Opus;
    318 # endif /* VBOX_WITH_LIBOPUS */
    319287# ifdef VBOX_WITH_LIBVORBIS
    320288        RECORDINGCODECVORBIS    Vorbis;
     
    488456uint32_t recordingCodecGetWritable(PRECORDINGCODEC pCodec, uint64_t msTimestamp);
    489457#endif /* !MAIN_INCLUDED_RecordingInternals_h */
    490 
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette