You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As midimaster in the syntaxbomb forum asked on audio manipulation I thought I give it a try with soloud (in Freeaudio I got it working already).
Seems I am missing something -as it does not play anything (it should play "noise"):
SuperStrictFrameworkBrl.StandardIOImportaudio.soloudImportaudio.audiominiaudioImportBrl.GLMax2DImportBrl.BankImportrandom.xoshiro'open window
Graphics 800, 600
SetAudioDriver("SoLoud")
'prepare sound data blockLocal soundData:TBank= CreateBank(2048)
Forlocal i:int=0until soundData.capacity()
soundData.PokeByte(i, Byte(Rand(255)))
Nextrem'for now this returns null ... (there is no "LoadSound()" way to retrieve'an "empty" TSound created by Soloud-driversLocal sound:TSound = LoadSound(null, SOLOUD_SOUND_WAV | SOUND_LOOP)'sound._sound = TSLAudioSourceLocal slWav:TSLWav = new TSLWavslWav.loadMem(soundData.Lock(), int(soundData.capacity()), False, False)TSoloudSound(sound)._sound = slWavendrem'remLocal sound:TSoloudSound=newTSoloudSound
sound.isLooped =True
sound._sound =newTSLWav
TSLWav(sound._sound).loadMem(soundData.Lock(), int(soundData.capacity()), False, False)
PlaySound(sound)
Repeat
Cls
DrawText("SPACE for random sound data", 0,0)
Flip
Until KeyHit(KEY_ESCAPE) Or AppTerminate()
Is there a way to obtain the sound samples buffer/byte ptr/mem block so we can fill it with our own data (eg incoming stuff from a midi keyboard or so) ?
The text was updated successfully, but these errors were encountered:
As midimaster in the syntaxbomb forum asked on audio manipulation I thought I give it a try with soloud (in Freeaudio I got it working already).
Seems I am missing something -as it does not play anything (it should play "noise"):
Is there a way to obtain the sound samples buffer/byte ptr/mem block so we can fill it with our own data (eg incoming stuff from a midi keyboard or so) ?
The text was updated successfully, but these errors were encountered: