[Axe.Oggsaver]

BlitzMax Forums/BlitzMax Beginners Area/[Axe.Oggsaver]

degac(Posted 2007) [#1]
Nothing really important to say, I just notice this in the example code for the SaveOgg commands
' saveogg.bmx
Import axe.saveogg ' <--- it doesn't exist!
Local sample:TAudioSample=CreateAudioSample( 11025,11025,SF_MONO16LE )
For Local k=0 Until 11025
        sample.samples[k]=Sin(k*360/32)*32767
Next
SaveOGG(sample,"sinwave.ogg")


' saveogg.bmx
Import axe.oggsaver '<---- this is ok!
Local sample:TAudioSample=CreateAudioSample( 11025,11025,SF_MONO16LE )
For Local k=0 Until 11025
        sample.samples[k]=Sin(k*360/32)*32767
Next
SaveOGG(sample,"sinwave.ogg")


Byez


skidracer(Posted 2007) [#2]
Doh!

Thanks Degac.