finish up most of the source audio stuff and rename some variables/structs/enum to be a bit more consistent

This commit is contained in:
jp9000
2013-10-31 10:28:47 -07:00
parent 99d2965e21
commit a6a6118c04
11 changed files with 152 additions and 57 deletions

View File

@@ -48,13 +48,19 @@ enum order_movement {
ORDER_MOVE_BOTTOM
};
struct filtered_audio {
void *data;
uint32_t frames;
uint64_t timestamp;
};
struct source_audio {
const void *data;
uint32_t frames;
/* audio will be automatically resampled/upmixed/downmixed */
enum speaker_layout speakers;
enum audio_format type;
enum audio_format format;
uint32_t samples_per_sec;
/* can be 0 if 'immediate' */
@@ -68,7 +74,7 @@ struct source_frame {
uint32_t row_bytes;
uint64_t timestamp;
enum video_type type;
enum video_format format;
float yuv_matrix[16];
bool flip;
};