- Steam App
- Ozapell Basic (523410)
- Event type
- patch note
- Published
- 8 October 2016 - 02:23:15 UTC
- Source
- steam_community_announcements
The latest version of Ozapell Basic adds support for wave audio. Assuming there is a valid audio file called AUDIO.WAV in the Documents -> Ozapell Basic folder, then the following code will load it: FILENAME="AUDIO" AUDIOARRAY=0 ARRAY=AUDIOARRAY WAVEFILELOAD Now the array AUDIOARRAY contains the audio data. This data can be analyzed or manipulated. RESULT will contain the number of entries (samples) in the array. Currently, the only wave audio format supported is Uncompressed PCM format, 16 bits per sample (CD quality), 44,100 samples per second (CD quality) and 1 channel (mono). To copy the audio data from an array to a sound buffer: ARRAY=AUDIOARRAY BUFFER=0 WAVEFILEBUFFER There are 32 sound buffers (0 to 31). Audio data under 15 seconds in length will be considered a sound effect. 16 sound buffers will be created for these sound effects to allow for up to 16 simultaneous plays of the ...