Skip to content

Commit 32ab331

Browse files
committed
Improved chunk-by-chunk audio playback
1 parent 81dafd1 commit 32ab331

File tree

5 files changed

+381
-25
lines changed

5 files changed

+381
-25
lines changed

Assets/Prefabs/RealtimeAPI.prefab

-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ MonoBehaviour:
146146
interruptResponseOnNewRecording: 1
147147
vadThreshold: 0.1
148148
vadSilenceDuration: 2
149-
ignoreInitialMicrophoneFramesOnVAD: 0
150149
currentVolumeLevel: 0
151150
fftSampleSize: 1024
152151
--- !u!1 &8086852912749008722

Assets/Scenes/DemoScene.unity

+320
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,214 @@ PrefabInstance:
570570
serializedVersion: 3
571571
m_TransformParent: {fileID: 1990000880}
572572
m_Modifications:
573+
- target: {fileID: 1255965906227625718, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
574+
propertyPath: m_AnchorMax.y
575+
value: 0
576+
objectReference: {fileID: 0}
577+
- target: {fileID: 1255965906227625718, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
578+
propertyPath: m_AnchorMin.y
579+
value: 0
580+
objectReference: {fileID: 0}
581+
- target: {fileID: 1255965906227625718, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
582+
propertyPath: m_AnchoredPosition.x
583+
value: 0
584+
objectReference: {fileID: 0}
585+
- target: {fileID: 1255965906227625718, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
586+
propertyPath: m_AnchoredPosition.y
587+
value: 0
588+
objectReference: {fileID: 0}
589+
- target: {fileID: 1532402257996066136, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
590+
propertyPath: m_AnchorMax.y
591+
value: 0
592+
objectReference: {fileID: 0}
593+
- target: {fileID: 1532402257996066136, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
594+
propertyPath: m_AnchorMin.y
595+
value: 0
596+
objectReference: {fileID: 0}
597+
- target: {fileID: 1532402257996066136, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
598+
propertyPath: m_AnchoredPosition.x
599+
value: 0
600+
objectReference: {fileID: 0}
601+
- target: {fileID: 1532402257996066136, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
602+
propertyPath: m_AnchoredPosition.y
603+
value: 0
604+
objectReference: {fileID: 0}
605+
- target: {fileID: 1710206016733480592, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
606+
propertyPath: m_AnchorMax.y
607+
value: 0
608+
objectReference: {fileID: 0}
609+
- target: {fileID: 1710206016733480592, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
610+
propertyPath: m_AnchorMin.y
611+
value: 0
612+
objectReference: {fileID: 0}
613+
- target: {fileID: 1710206016733480592, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
614+
propertyPath: m_AnchoredPosition.x
615+
value: 0
616+
objectReference: {fileID: 0}
617+
- target: {fileID: 1710206016733480592, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
618+
propertyPath: m_AnchoredPosition.y
619+
value: 0
620+
objectReference: {fileID: 0}
621+
- target: {fileID: 2280149581913286804, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
622+
propertyPath: m_AnchorMax.y
623+
value: 0
624+
objectReference: {fileID: 0}
625+
- target: {fileID: 2280149581913286804, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
626+
propertyPath: m_AnchorMin.y
627+
value: 0
628+
objectReference: {fileID: 0}
629+
- target: {fileID: 2280149581913286804, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
630+
propertyPath: m_AnchoredPosition.x
631+
value: 0
632+
objectReference: {fileID: 0}
633+
- target: {fileID: 2280149581913286804, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
634+
propertyPath: m_AnchoredPosition.y
635+
value: 0
636+
objectReference: {fileID: 0}
637+
- target: {fileID: 2380939926164518968, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
638+
propertyPath: m_AnchorMax.y
639+
value: 0
640+
objectReference: {fileID: 0}
641+
- target: {fileID: 2380939926164518968, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
642+
propertyPath: m_AnchorMin.y
643+
value: 0
644+
objectReference: {fileID: 0}
645+
- target: {fileID: 2380939926164518968, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
646+
propertyPath: m_AnchoredPosition.x
647+
value: 0
648+
objectReference: {fileID: 0}
649+
- target: {fileID: 2380939926164518968, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
650+
propertyPath: m_AnchoredPosition.y
651+
value: 0
652+
objectReference: {fileID: 0}
653+
- target: {fileID: 2644693647587367262, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
654+
propertyPath: m_AnchorMax.y
655+
value: 0
656+
objectReference: {fileID: 0}
657+
- target: {fileID: 2644693647587367262, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
658+
propertyPath: m_AnchorMin.y
659+
value: 0
660+
objectReference: {fileID: 0}
661+
- target: {fileID: 2644693647587367262, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
662+
propertyPath: m_AnchoredPosition.x
663+
value: 0
664+
objectReference: {fileID: 0}
665+
- target: {fileID: 2644693647587367262, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
666+
propertyPath: m_AnchoredPosition.y
667+
value: 0
668+
objectReference: {fileID: 0}
669+
- target: {fileID: 2865206520522284828, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
670+
propertyPath: m_AnchorMax.y
671+
value: 0
672+
objectReference: {fileID: 0}
673+
- target: {fileID: 2865206520522284828, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
674+
propertyPath: m_AnchorMin.y
675+
value: 0
676+
objectReference: {fileID: 0}
677+
- target: {fileID: 2865206520522284828, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
678+
propertyPath: m_AnchoredPosition.x
679+
value: 0
680+
objectReference: {fileID: 0}
681+
- target: {fileID: 2865206520522284828, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
682+
propertyPath: m_AnchoredPosition.y
683+
value: 0
684+
objectReference: {fileID: 0}
685+
- target: {fileID: 3575552910384579341, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
686+
propertyPath: m_AnchorMax.y
687+
value: 0
688+
objectReference: {fileID: 0}
689+
- target: {fileID: 3575552910384579341, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
690+
propertyPath: m_AnchorMin.y
691+
value: 0
692+
objectReference: {fileID: 0}
693+
- target: {fileID: 3575552910384579341, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
694+
propertyPath: m_AnchoredPosition.x
695+
value: 0
696+
objectReference: {fileID: 0}
697+
- target: {fileID: 3575552910384579341, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
698+
propertyPath: m_AnchoredPosition.y
699+
value: 0
700+
objectReference: {fileID: 0}
701+
- target: {fileID: 3695955947972305338, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
702+
propertyPath: m_AnchorMax.y
703+
value: 0
704+
objectReference: {fileID: 0}
705+
- target: {fileID: 3695955947972305338, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
706+
propertyPath: m_AnchorMin.y
707+
value: 0
708+
objectReference: {fileID: 0}
709+
- target: {fileID: 3695955947972305338, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
710+
propertyPath: m_AnchoredPosition.x
711+
value: 0
712+
objectReference: {fileID: 0}
713+
- target: {fileID: 3695955947972305338, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
714+
propertyPath: m_AnchoredPosition.y
715+
value: 0
716+
objectReference: {fileID: 0}
717+
- target: {fileID: 4407607576596302816, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
718+
propertyPath: m_AnchorMax.y
719+
value: 0
720+
objectReference: {fileID: 0}
721+
- target: {fileID: 4407607576596302816, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
722+
propertyPath: m_AnchorMin.y
723+
value: 0
724+
objectReference: {fileID: 0}
725+
- target: {fileID: 4407607576596302816, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
726+
propertyPath: m_AnchoredPosition.x
727+
value: 0
728+
objectReference: {fileID: 0}
729+
- target: {fileID: 4407607576596302816, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
730+
propertyPath: m_AnchoredPosition.y
731+
value: 0
732+
objectReference: {fileID: 0}
733+
- target: {fileID: 4468429704271737160, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
734+
propertyPath: m_AnchorMax.y
735+
value: 0
736+
objectReference: {fileID: 0}
737+
- target: {fileID: 4468429704271737160, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
738+
propertyPath: m_AnchorMin.y
739+
value: 0
740+
objectReference: {fileID: 0}
741+
- target: {fileID: 4468429704271737160, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
742+
propertyPath: m_AnchoredPosition.x
743+
value: 0
744+
objectReference: {fileID: 0}
745+
- target: {fileID: 4468429704271737160, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
746+
propertyPath: m_AnchoredPosition.y
747+
value: 0
748+
objectReference: {fileID: 0}
749+
- target: {fileID: 4544183516694379835, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
750+
propertyPath: m_AnchorMax.y
751+
value: 0
752+
objectReference: {fileID: 0}
753+
- target: {fileID: 4544183516694379835, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
754+
propertyPath: m_AnchorMin.y
755+
value: 0
756+
objectReference: {fileID: 0}
757+
- target: {fileID: 4544183516694379835, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
758+
propertyPath: m_AnchoredPosition.x
759+
value: 0
760+
objectReference: {fileID: 0}
761+
- target: {fileID: 4544183516694379835, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
762+
propertyPath: m_AnchoredPosition.y
763+
value: 0
764+
objectReference: {fileID: 0}
765+
- target: {fileID: 4886389097399582781, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
766+
propertyPath: m_AnchorMax.y
767+
value: 0
768+
objectReference: {fileID: 0}
769+
- target: {fileID: 4886389097399582781, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
770+
propertyPath: m_AnchorMin.y
771+
value: 0
772+
objectReference: {fileID: 0}
773+
- target: {fileID: 4886389097399582781, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
774+
propertyPath: m_AnchoredPosition.x
775+
value: 0
776+
objectReference: {fileID: 0}
777+
- target: {fileID: 4886389097399582781, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
778+
propertyPath: m_AnchoredPosition.y
779+
value: 0
780+
objectReference: {fileID: 0}
573781
- target: {fileID: 5337751238952555557, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
574782
propertyPath: m_Pivot.x
575783
value: 0.5
@@ -654,14 +862,126 @@ PrefabInstance:
654862
propertyPath: audioController
655863
value:
656864
objectReference: {fileID: 1157521912}
865+
- target: {fileID: 5539276234762005852, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
866+
propertyPath: m_AnchorMax.y
867+
value: 0
868+
objectReference: {fileID: 0}
869+
- target: {fileID: 5539276234762005852, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
870+
propertyPath: m_AnchorMin.y
871+
value: 0
872+
objectReference: {fileID: 0}
873+
- target: {fileID: 5539276234762005852, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
874+
propertyPath: m_AnchoredPosition.x
875+
value: 0
876+
objectReference: {fileID: 0}
877+
- target: {fileID: 5539276234762005852, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
878+
propertyPath: m_AnchoredPosition.y
879+
value: 0
880+
objectReference: {fileID: 0}
881+
- target: {fileID: 6102789262774946950, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
882+
propertyPath: m_AnchorMax.y
883+
value: 0
884+
objectReference: {fileID: 0}
885+
- target: {fileID: 6102789262774946950, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
886+
propertyPath: m_AnchorMin.y
887+
value: 0
888+
objectReference: {fileID: 0}
889+
- target: {fileID: 6102789262774946950, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
890+
propertyPath: m_AnchoredPosition.x
891+
value: 0
892+
objectReference: {fileID: 0}
893+
- target: {fileID: 6102789262774946950, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
894+
propertyPath: m_AnchoredPosition.y
895+
value: 0
896+
objectReference: {fileID: 0}
897+
- target: {fileID: 6263522274942710432, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
898+
propertyPath: m_AnchorMax.y
899+
value: 0
900+
objectReference: {fileID: 0}
901+
- target: {fileID: 6263522274942710432, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
902+
propertyPath: m_AnchorMin.y
903+
value: 0
904+
objectReference: {fileID: 0}
905+
- target: {fileID: 6263522274942710432, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
906+
propertyPath: m_AnchoredPosition.x
907+
value: 0
908+
objectReference: {fileID: 0}
909+
- target: {fileID: 6263522274942710432, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
910+
propertyPath: m_AnchoredPosition.y
911+
value: 0
912+
objectReference: {fileID: 0}
657913
- target: {fileID: 6644563668055411794, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
658914
propertyPath: m_Name
659915
value: DemoIntegration
660916
objectReference: {fileID: 0}
917+
- target: {fileID: 6646294751503784774, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
918+
propertyPath: m_AnchorMax.y
919+
value: 0
920+
objectReference: {fileID: 0}
921+
- target: {fileID: 6646294751503784774, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
922+
propertyPath: m_AnchorMin.y
923+
value: 0
924+
objectReference: {fileID: 0}
925+
- target: {fileID: 6646294751503784774, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
926+
propertyPath: m_AnchoredPosition.x
927+
value: 0
928+
objectReference: {fileID: 0}
929+
- target: {fileID: 6646294751503784774, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
930+
propertyPath: m_AnchoredPosition.y
931+
value: 0
932+
objectReference: {fileID: 0}
933+
- target: {fileID: 6850524177438646928, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
934+
propertyPath: m_AnchorMax.y
935+
value: 0
936+
objectReference: {fileID: 0}
937+
- target: {fileID: 6850524177438646928, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
938+
propertyPath: m_AnchorMin.y
939+
value: 0
940+
objectReference: {fileID: 0}
941+
- target: {fileID: 6850524177438646928, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
942+
propertyPath: m_AnchoredPosition.x
943+
value: 0
944+
objectReference: {fileID: 0}
945+
- target: {fileID: 6850524177438646928, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
946+
propertyPath: m_AnchoredPosition.y
947+
value: 0
948+
objectReference: {fileID: 0}
949+
- target: {fileID: 7605602261734624379, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
950+
propertyPath: m_AnchorMax.y
951+
value: 0
952+
objectReference: {fileID: 0}
953+
- target: {fileID: 7605602261734624379, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
954+
propertyPath: m_AnchorMin.y
955+
value: 0
956+
objectReference: {fileID: 0}
957+
- target: {fileID: 7605602261734624379, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
958+
propertyPath: m_AnchoredPosition.x
959+
value: 0
960+
objectReference: {fileID: 0}
961+
- target: {fileID: 7605602261734624379, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
962+
propertyPath: m_AnchoredPosition.y
963+
value: 0
964+
objectReference: {fileID: 0}
661965
- target: {fileID: 8428551282407799376, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
662966
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
663967
value:
664968
objectReference: {fileID: 134438100}
969+
- target: {fileID: 8621603656619835539, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
970+
propertyPath: m_AnchorMax.y
971+
value: 0
972+
objectReference: {fileID: 0}
973+
- target: {fileID: 8621603656619835539, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
974+
propertyPath: m_AnchorMin.y
975+
value: 0
976+
objectReference: {fileID: 0}
977+
- target: {fileID: 8621603656619835539, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
978+
propertyPath: m_AnchoredPosition.x
979+
value: 0
980+
objectReference: {fileID: 0}
981+
- target: {fileID: 8621603656619835539, guid: fc531736d51444c8280c8d93c32c7c33, type: 3}
982+
propertyPath: m_AnchoredPosition.y
983+
value: 0
984+
objectReference: {fileID: 0}
665985
m_RemovedComponents: []
666986
m_RemovedGameObjects: []
667987
m_AddedGameObjects: []

0 commit comments

Comments
 (0)