Changeset 96285 in vbox for trunk/src/VBox/Main/include/RecordingInternals.h
- Timestamp:
- Aug 18, 2022 8:01:23 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/RecordingInternals.h
r96284 r96285 39 39 #endif /* VBOX_WITH_LIBVPX */ 40 40 41 #ifdef VBOX_WITH_LIBOPUS42 # include <opus.h>43 #endif44 45 41 #ifdef VBOX_WITH_LIBVORBIS 46 42 # include "vorbis/vorbisenc.h" … … 51 47 * Defines * 52 48 *********************************************************************************************************************************/ 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 56 49 #define VBOX_RECORDING_VORBIS_HZ_MAX 48000 /**< Maximum sample rate (in Hz) Vorbis can handle. */ 57 50 #define VBOX_RECORDING_VORBIS_FRAME_MS_DEFAULT 20 /**< Default Vorbis frame size (in ms). */ … … 206 199 /** Time (in ms) the encoder expects us to send data to encode. 207 200 * 208 * For Opus, valid frame sizes are:209 * ms Frame size210 * 2.5 120211 * 5 240212 * 10 480213 * 20 (Default) 960214 * 40 1920215 * 60 2880216 *217 201 * For Vorbis, valid frame sizes are powers of two from 64 to 8192 bytes. 218 202 */ … … 247 231 #endif /* VBOX_WITH_LIBVPX */ 248 232 249 #ifdef VBOX_WITH_LIBOPUS250 /**251 * Opus encoder state (needs libvorbis).252 */253 typedef struct RECORDINGCODECOPUS254 {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 262 233 #ifdef VBOX_WITH_LIBVORBIS 263 234 /** … … 314 285 union 315 286 { 316 # ifdef VBOX_WITH_LIBOPUS317 RECORDINGCODECOPUS Opus;318 # endif /* VBOX_WITH_LIBOPUS */319 287 # ifdef VBOX_WITH_LIBVORBIS 320 288 RECORDINGCODECVORBIS Vorbis; … … 488 456 uint32_t recordingCodecGetWritable(PRECORDINGCODEC pCodec, uint64_t msTimestamp); 489 457 #endif /* !MAIN_INCLUDED_RecordingInternals_h */ 490
Note:
See TracChangeset
for help on using the changeset viewer.