Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/media/libcubeb/src/android/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quelle  audiotrack_definitions.h   Sprache: C

 
/*
 * Copyright (C) 2008 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


#include <stdint.h>

/*
 * The following definitions are copied from the android sources. Only the
 * relevant enum member and values needed are copied.
 */


/*
 * From
 * https://android.googlesource.com/platform/frameworks/base/+/android-2.2.3_r2.1/include/utils/Errors.h
 */

typedef int32_t status_t;

/*
 * From
 * https://android.googlesource.com/platform/frameworks/base/+/android-2.2.3_r2.1/include/media/AudioTrack.h
 */

struct Buffer {
  uint32_t flags;
  int channelCount;
  int format;
  size_t frameCount;
  size_t size;
  union {
    void * raw;
    short * i16;
    int8_t * i8;
  };
};

enum event_type {
  EVENT_MORE_DATA = 0,
  EVENT_UNDERRUN = 1,
  EVENT_LOOP_END = 2,
  EVENT_MARKER = 3,
  EVENT_NEW_POS = 4,
  EVENT_BUFFER_END = 5
};

/**
 * From
 * https://android.googlesource.com/platform/frameworks/base/+/android-2.2.3_r2.1/include/media/AudioSystem.h
 * and
 * https://android.googlesource.com/platform/system/core/+/android-4.2.2_r1/include/system/audio.h
 */


#define AUDIO_STREAM_TYPE_MUSIC 3

enum {
  AUDIO_CHANNEL_OUT_FRONT_LEFT_ICS = 0x1,
  AUDIO_CHANNEL_OUT_FRONT_RIGHT_ICS = 0x2,
  AUDIO_CHANNEL_OUT_MONO_ICS = AUDIO_CHANNEL_OUT_FRONT_LEFT_ICS,
  AUDIO_CHANNEL_OUT_STEREO_ICS =
      (AUDIO_CHANNEL_OUT_FRONT_LEFT_ICS | AUDIO_CHANNEL_OUT_FRONT_RIGHT_ICS)
} AudioTrack_ChannelMapping_ICS;

enum {
  AUDIO_CHANNEL_OUT_FRONT_LEFT_Legacy = 0x4,
  AUDIO_CHANNEL_OUT_FRONT_RIGHT_Legacy = 0x8,
  AUDIO_CHANNEL_OUT_MONO_Legacy = AUDIO_CHANNEL_OUT_FRONT_LEFT_Legacy,
  AUDIO_CHANNEL_OUT_STEREO_Legacy = (AUDIO_CHANNEL_OUT_FRONT_LEFT_Legacy |
                                     AUDIO_CHANNEL_OUT_FRONT_RIGHT_Legacy)
} AudioTrack_ChannelMapping_Legacy;

typedef enum {
  AUDIO_FORMAT_PCM = 0x00000000,
  AUDIO_FORMAT_PCM_SUB_16_BIT = 0x1,
  AUDIO_FORMAT_PCM_16_BIT = (AUDIO_FORMAT_PCM | AUDIO_FORMAT_PCM_SUB_16_BIT),
} AudioTrack_SampleType;

Messung V0.5
C=95 H=100 G=97

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.