Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Audio storage, stereo switching
#5
(Yesterday, 01:25 AM)VikRam025 Wrote: Good evening Mrs; I have always wanted to know where this would come from:


make wave sounds
FOR j = 1 TO 2
        READ wav$, n
        OPEN wav$ FOR BINARY AS #1
        FOR i = 1 TO n: READ z$: z$ = D93$(z$): PUT #1, , z$: NEXT
        CLOSE #1
        IF j = 1 THEN shootwav = _SNDOPEN(wav$, "SYNC") ELSE duckwav = _SNDOPEN(wav$, "SYNC")
        KILL wav$
NEXT


'wav sounds
DATA "_tmpshoot.wav",21
DATA "%wnkk&)%+  |f{j&18?%E7  ! $ eD  &K%c  $ -  &1,.?%)  ;(  &/,?,%Q+  &DDAA@@????<<33%zzkkgggg"
DATA "%ll&**GGWW\\]]]]\\]][[WWRROOMMLLJJIIJJ::%||jjbb__\\ZZXXZZddllvv{{~~yybbGG5566778877"
DATA "%77??OO__ffgggg&66^^#>>SSXXffpppppppppppppppppppp__OOOORRUUUUXXII&YY%aa++,,++        "
DATA "%77OOXX]]``xx&11NNXXXXZZ\\]]]]eekkssYY22%zzssvvsshhUUWW&11RRqqrrxx||#22<<9922**33FFVV"
DATA "&tt%pp                                &33#pppppppppp77&,,%bbggffaaKK33                "
DATA "%                      &33ttyy#..llpppppppppppppppppppppppppppppppppppppppppppppppp"
DATA "#pppppppp&DDJJQQhh#TTpp&88%                                                &bb#pppppppp"
DATA "#pppppp&99%            #__ppppppppppppMM%~~              &~~#pppppppppppppppp&FF%        "
DATA "%    #00pppppppppppp%                    nn#ppppppppppppppaa&==%OO\\gg&pp#pppppppppppppp"
DATA "#ppppppppppppppppppppppppppppppppppppppGG%              HHOOII                    "
DATA "%              &||yylldd^^``#..pppppppppppppppppppppppppppppppppppp%||              "
DATA "%                                #pppppppppppppppp__%iiAAEE\\#eepppppppppppppppppppp"
DATA "#ppppppppppppppppee--11AAWWpppp@@&??%==1100NN&aa#pppppppppppp]]55&  %                  "
DATA "%                          SS&::#22LLYYddNNYYpppppppppppppppppppp00%                "
DATA "%      !!                        }}&99**FF#//eecc77&mm__ZZZZ\\..%``#pppppppppppppppppp"
DATA "#pppppppppppppppppppppppppppppp%                  #ccpppppppppppppp&__%            &99"
DATA "#pppppppppppppp%99                #<<pppppppppppppppppppppppppppppppppppppppppp]]&dd"
DATA "%                                              &gg#pppppppppppppppppppppppppppppppp"
DATA "#pppppppppppppppppppppppppppp&<<%                aa#pppppppppp%ff          #$$pppppppp"
DATA "#pppppppp%~~                &OO#ppnnppooYYGGppppppppppppppppppii\\MMppPP..&gg,,%__&  %ss"
DATA "%ggccNN00                              "
DATA "_tmpduck.wav",33
DATA "%wnkk1/  |f{j&18?%E7  ! $ eD  &K%c  $ -  &1,.?%)  #^%)  &/,?,#K%.  &NVOREN?IISIRJTOZHJDIES"
DATA "&KXSXHLAGDLHRGVNYNPEFAPHYT[PS?EDLGRESNYOPJGAL@UU\VYCEAHDTFRLWQVKHBI=SO[Y]NI@DBVFP"
DATA "&ITS\MIAK>OGX[dPFBB@VCNJZTYNLEK?KE^XhVJ<BARBNFWV[IIEH@I>[]c\P:=AQ?KCTX^JIEIAJ:W_f"
DATA "&VE9;@P>JL\Y_LHDJ<JF_^eXF9FCO@JK]\XIHAI>KF`i_ZD7FDLCSJ]`VGI@IAJGcj\HB5GHIBVJ_bSCI"
DATA "&EGBFIgjWBB6HKEBYZ`\O@LJD?UNlfQ<E@KFJD\]_JLAPI>AZdnPE:GDLFLMe[[HNEOBEE`efIB5PHOGO"
DATA "&QfQNEMGKAKUtd\D@9UIJGSVfMJBSHGAT\pSC4J?XIKLgTQIICPCJLnbfL?1QINIQPcQK?REGATXpZGCA"
DATA "&6PIOKfTVMKBP@HCacgP@2PBJGVTgPG@WGF<O\v\GB@:RDIJj^]KHBU?D>\hkP@1RGMAPVjWJCLJK<NXp"
DATA "&iWBA>VLFAY__IE?NJC>\iiaF6EKP@PJaaQ>GNN@EHep\>><PKH@ZeaDC<JME:\lhh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WaULB@4GEb^qq[B."
DATA "%y&?9^IUR]\[LE5F<MNklvaF+-1QCQKX[fPD8C=LCM\trWL0%~&7DXMXK__YDC:LJVAVevaM@0)=BYFILf`]"
DATA "&D91J:JO`ercVD1+ACNPFImk^G9,@DJMhhgcJ@<+BIMJK=lgbG4.?=ODoocOD6:4DGYFKDZgrN;0A;RJg"
DATA "&qhPGF>398ZXGHKTkcA3D8FCSVpfKME9>2LP]TI2TekP3 9:K;Up# &b6) .NSO=H@eqcJC;F92>rvlNBEI"
DATA "&FSCUNKIVHQLKJNJTB[INKKHNDTJTPNIMDTHSGPGOMNHRGPGTKVMQDMHPGRIQIRJRLRHRDOIOMPHPJX@P"
DATA "&EKKOMVFTHPKPEMKUKULP"
What is this supposed to be? To insert a program, use the icon in the upper left and insert the program between the square brackets qb square brackets then program and finally square brackets /qb square brackets. Your sound probably saved in Base64 can not be used, because the D93$ function is missing. On the other hand, thank you. You just reminded me that the programs listed here do not work in QB64PE but only in QB64, because the syntax and actual use of the _MemSound command have changed. For this reason, I will now start modernizing this thread so that SaveSound also works in QB64PE.


Reply


Messages In This Thread
Audio storage, stereo switching - by Petr - 02-18-2023, 09:21 PM
RE: Audio storage, stereo switching - by Petr - 02-20-2023, 08:26 PM
RE: Audio storage, stereo switching - by Petr - Yesterday, 04:47 PM
RE: Audio storage, stereo switching - by bplus - Yesterday, 07:59 PM
RE: Audio storage, stereo switching - by Petr - Yesterday, 08:48 PM
RE: Audio storage, stereo switching - by bplus - Yesterday, 08:50 PM
RE: Audio storage, stereo switching - by Petr - Yesterday, 09:03 PM



Users browsing this thread: 1 Guest(s)