Play live stereo on desktop and verify channel separation
This commit is contained in:
1 parent
e06e9b0e22
commit
214a98efb1
3 files changed
+30
-14
No files matched your search
@@ -18,7 +18,7 @@
|
||||
|
||||
#define CHECK(x) do { if (!(x)) { DEBUG_ERROR(DEBUG_CATEGORY_STREAM, "Android stream test line=%d: %s", __LINE__, #x); abort(); } } while (0)
|
||||
static uint8_t video[9000];
|
||||
static struct stream_media_format current_format = {1280, 720, 90, STREAM_MEDIA_H264, STREAM_MEDIA_OPUS, 1};
|
||||
static struct stream_media_format current_format = {1280, 720, 90, STREAM_MEDIA_H264, STREAM_MEDIA_OPUS_STEREO, 1};
|
||||
static int feed(uint64_t id, int is_video, uint64_t pts, int key, const uint8_t *data, size_t length) {
|
||||
return android_stream_feed(id, is_video, pts, key, data, length, is_video ? ¤t_format : NULL);
|
||||
}
|
||||
@@ -101,7 +101,7 @@ int main(void) {
|
||||
/* Commit новой revision удаляет старое видео, сохраняет аудио/epoch и не требует нового owner. */
|
||||
CHECK(feed(1, 1, 200000, 0, video, sizeof(video)) == 1);
|
||||
CHECK(feed(1, 0, 120000, 0, (const uint8_t *)"ops", 3) == 1);
|
||||
struct stream_media_format next_format = {1920, 1080, 270, STREAM_MEDIA_H264, STREAM_MEDIA_OPUS, 2};
|
||||
struct stream_media_format next_format = {1920, 1080, 270, STREAM_MEDIA_H264, STREAM_MEDIA_OPUS_STEREO, 2};
|
||||
CHECK(android_stream_feed(1, 1, 300000, 0, video, sizeof(video), &next_format) == 0);
|
||||
CHECK(android_stream_feed(1, 1, 300000, 1, video, sizeof(video), &next_format) == 1);
|
||||
CHECK(feed(1, 1, 350000, 1, video, sizeof(video)) == 0);
|
||||
|
||||
Reference in new issue
Block a user