123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|611|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Sound with Blitz without external media ?

Tue, 29 May 2018, 14:02
Dan

Sound with Blitz without external media ?


Is there a way to make sound with blitz3d without using external media/dll's ?

I know beep as an api call, but this kinda pauses the program while it is 'beeping'.

I'm searching for a way which does not rely on any external/temporal media at all (at least not writing on the disk/HD)
Tue, 29 May 2018, 14:21
Jayenkai
I don't "think" that's do-able. BlitzClassic doesn't appear to "openURL" like BlitzMax does.

It might be possible to create a waveform, save it out to disk (using your own wave exporting methods) then load it back in, whilst deleting the file. That's probably the only way to do it... But to be honest, you might as well just include a simple beep, by that point.

In BlitzMax you can create a :TAudioSample, but I've never dared attempt such a thing, so .. Good luck!!!

-=-=-
''Load, Next List!''
Tue, 29 May 2018, 15:52
rockford
You could (in theory) create a MIDI player (using an .API?) and use hard coded data to play within it.
Wed, 30 May 2018, 00:25
Dabz
Yeah, the cleanest way would to be to implement your own routine in the Blitz[whatever] source which will allow you to say, read a file which is converted and stored in Data statements within the program, maybe something like:-

CreateBank
Fill Bank From Data
LoadSoundBank <--- Own custom addition

Thats the first port of call if it were me.

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Wed, 30 May 2018, 08:10
Dan
Thanks for the answers !