Author Topic: feature request: Mem2Wav  (Read 17826 times)

Offline Gary

  • Dr. Type
  • ****
  • Posts: 313
    • View Profile
feature request: Mem2Wav
« on: 2012-Jun-22 »
Kitty,

Would it be possible to add a mem2wav option much like the mem2sprite function (and a loadwavmem command)? This would then allow basic sound manipulation (like speed up and slow down by altering the sample frequency) on the fly and give the option to generate tones without the use of wav files being prebuilt before hand. Also any music and sounds could be hidden in the source rather than being separate files that could be ripped out

Gary
« Last Edit: 2012-Jun-22 by Gary »

MrTAToad

  • Guest
Re: feature request: Mem2Wav
« Reply #1 on: 2012-Jun-22 »
Would like one for fonts too...

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3375
  • Integrated Brain
    • View Profile
Re: feature request: Mem2Wav
« Reply #2 on: 2012-Jun-22 »
I think this can be very usefull...

About the audio in mobile devices.... wich it´s the library uses, OPENAL, for all devices ?¿...

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4078
    • View Profile
    • Space Fractal
Re: feature request: Mem2Wav
« Reply #3 on: 2012-Jun-22 »
mem2wav could been usefull to add example adpcm wav support and such thing....

etc

LOADSOUNDMEM(Soundinfo info, num%, buffers%)

Soundinfo is of course a type that contant info like resoulution (16) and frequency (44.1) used, as well the bank array with the sound its self (neat if could using a BYTE/SHORT array, not INT). That mean GlBasic never would seen if we converted from ADPCM to PCM first and hence possible to add new formats to sound would been possible.

Also manipulate sound that would would been possible too, but its of course cost by memory.
« Last Edit: 2012-Jun-22 by spacefractal »
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
Re: feature request: Mem2Wav
« Reply #4 on: 2016-Feb-20 »
Seconded

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10859
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: feature request: Mem2Wav
« Reply #5 on: 2016-Feb-24 »
That's very complicated to do with all the different sound engine I had to use. Maybe its easier to write a temp file? I do this in the sfxr wrapper. Search for it.