mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Audio V5: move Stream Metadata to common
So that it can be used by the Bluetooth HAL. Test: compile Change-Id: I2e2b1e12e1f837183c4edbd1d330a13a67d1ecae Merged-In: I2e2b1e12e1f837183c4edbd1d330a13a67d1ecaf Signed-off-by: Kevin Rocard <krocard@google.com>
This commit is contained in:
@@ -122,39 +122,6 @@ enum MessageQueueFlagBits : uint32_t {
|
||||
NOT_FULL = 1 << 1
|
||||
};
|
||||
|
||||
/** Metadata of a playback track for a StreamOut. */
|
||||
struct PlaybackTrackMetadata {
|
||||
AudioUsage usage;
|
||||
AudioContentType contentType;
|
||||
/**
|
||||
* Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
|
||||
* 2 means double amplification...
|
||||
* Must not be negative.
|
||||
*/
|
||||
float gain;
|
||||
};
|
||||
|
||||
/** Metadatas of the source of a StreamOut. */
|
||||
struct SourceMetadata {
|
||||
vec<PlaybackTrackMetadata> tracks;
|
||||
};
|
||||
|
||||
/** Metadata of a record track for a StreamIn. */
|
||||
struct RecordTrackMetadata {
|
||||
AudioSource source;
|
||||
/**
|
||||
* Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
|
||||
* 2 means double amplification...
|
||||
* Must not be negative.
|
||||
*/
|
||||
float gain;
|
||||
};
|
||||
|
||||
/** Metadatas of the source of a StreamIn. */
|
||||
struct SinkMetadata {
|
||||
vec<RecordTrackMetadata> tracks;
|
||||
};
|
||||
|
||||
/*
|
||||
* Microphone information
|
||||
*
|
||||
|
||||
@@ -706,6 +706,39 @@ struct AudioConfig {
|
||||
uint64_t frameCount;
|
||||
};
|
||||
|
||||
/** Metadata of a playback track for a StreamOut. */
|
||||
struct PlaybackTrackMetadata {
|
||||
AudioUsage usage;
|
||||
AudioContentType contentType;
|
||||
/**
|
||||
* Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
|
||||
* 2 means double amplification...
|
||||
* Must not be negative.
|
||||
*/
|
||||
float gain;
|
||||
};
|
||||
|
||||
/** Metadatas of the source of a StreamOut. */
|
||||
struct SourceMetadata {
|
||||
vec<PlaybackTrackMetadata> tracks;
|
||||
};
|
||||
|
||||
/** Metadata of a record track for a StreamIn. */
|
||||
struct RecordTrackMetadata {
|
||||
AudioSource source;
|
||||
/**
|
||||
* Positive linear gain applied to the track samples. 0 being muted and 1 is no attenuation,
|
||||
* 2 means double amplification...
|
||||
* Must not be negative.
|
||||
*/
|
||||
float gain;
|
||||
};
|
||||
|
||||
/** Metadatas of the source of a StreamIn. */
|
||||
struct SinkMetadata {
|
||||
vec<RecordTrackMetadata> tracks;
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user