InitialObjectDescriptor { objectDescriptorID 1 audioProfileLevelIndication 255 visualProfileLevelIndication 254 sceneProfileLevelIndication 1 graphicsProfileLevelIndication 1 ODProfileLevelIndication 1 esDescr [ ES_Descriptor { ES_ID 1 decConfigDescr DecoderConfigDescriptor { objectTypeIndication 1 streamType 3 decSpecificInfo BIFSConfig { isCommandStream true pixelMetric true pixelWidth 300 pixelHeight 200 } } } ES_Descriptor { ES_ID 2 OCR_ES_ID 1 decConfigDescr DecoderConfigDescriptor { streamType 1 } } ] } OrderedGroup { children [ Background2D { backColor 1 1 1 } WorldInfo { info ["This shows audiobuffer" "with loop and pitch" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"] title "AudioBuffer Test" } Sound2D { source DEF AUDBUF AudioBuffer { loop TRUE numChan 2 length 2 children [ AudioSource { url [od:10] stopTime -1 } ] } } Transform2D { translation 0 -50 children [ Shape { appearance Appearance { material Material2D { emissiveColor 1 0 0 filled TRUE } } geometry Rectangle { size 100 50 } } Shape { appearance DEF TXTAPP Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE } } geometry Text { string ["restart"] fontStyle DEF FS FontStyle { justify ["MIDDLE" "MIDDLE"] size 16 } } } DEF TS1 TouchSensor {} ] } DEF C1 Conditional { buffer { REPLACE AUDBUF.stopTime BY 0 REPLACE AUDBUF.startTime BY 0 } } Transform2D { translation -100 50 children [ Shape { appearance Appearance { material Material2D { emissiveColor 0 1 1 filled TRUE } } geometry Rectangle { size 50 50 } } Shape { appearance USE TXTAPP geometry Text { string ["pitch" "0.5"] fontStyle USE FS } } DEF TS2 TouchSensor {} ] } Transform2D { translation 0 50 children [ Shape { appearance Appearance { material Material2D { emissiveColor 0 1 0 filled TRUE } } geometry Rectangle { size 50 50 } } Shape { appearance USE TXTAPP geometry Text { string ["pitch" "1.0"] fontStyle USE FS } } DEF TS3 TouchSensor {} ] } Transform2D { translation 100 50 children [ Shape { appearance Appearance { material Material2D { emissiveColor 0 0 1 filled TRUE } } geometry Rectangle { size 50 50 } } Shape { appearance USE TXTAPP geometry Text { string ["pitch" "2"] fontStyle USE FS } } DEF TS4 TouchSensor {} ] } DEF C2 Conditional { buffer { REPLACE AUDBUF.pitch BY 0.5 } } DEF C3 Conditional { buffer { REPLACE AUDBUF.pitch BY 1 } } DEF C4 Conditional { buffer { REPLACE AUDBUF.pitch BY 2 } } ] } ROUTE TS1.isActive TO C1.activate ROUTE TS2.isActive TO C2.activate ROUTE TS3.isActive TO C3.activate ROUTE TS4.isActive TO C4.activate AT 0 { UPDATE OD [ ObjectDescriptor { objectDescriptorID 10 esDescr [ ES_Descriptor { ES_ID 20 OCR_ES_ID 20 muxInfo MuxInfo { fileName "auxiliary_files/enst_audio.aac" } } ] } ] }