Author Topic: streaming from memory  (Read 5414 times)

HellFire

  • Guest
streaming from memory
« on: 30 Jun '03 - 13:25 »
hey

this is my 1st post.

newyas
how do u stream from memory using streamcreatefile in vb??? i mean wt memory location do u pass and how??

basicaly, if i hav created 1 file stream (lets cal it 'a'), i need 2 create another stream tht wil stream from the 'a' buffer.

so to use streamcreatefile i gues i'l hav 2 no hte mem location of the 'a' buffer.
ne other method wil also do

thnx
HellFire

(: JOBnik! :)

  • Posts: 1080
Re: streaming from memory
« Reply #1 on: 30 Jun '03 - 14:18 »
Hi ;D

Check out the  - Memory - example that in BASS package in VB directory :)

Have fun!

8) JOBnik! 8)

HellFire

  • Guest
Re: streaming from memory
« Reply #2 on: 1 Jul '03 - 10:06 »
hey

thnx 4 th info. but i think i shuda xplained my requiremnts  a lil betr.

spose
i hav created a file stream. now lets say i apply dmo effects, custom dsp's or wtevr 2 this stream, using the bass dll. now the secondary streams tht i create, shud use the memory location of the 1st streams buffer, so tht i dont need 2 reapply al the dsp's and effects al over again 2 the second stream.

a lil of topic now, but i wana no - wt order do custom dsp's get procesed in?? can u set this 2 somethin different from the default

thnx a lot
HellFire

Ian @ un4seen

  • Administrator
  • Posts: 26305
Re: streaming from memory
« Reply #3 on: 1 Jul '03 - 12:04 »
Quote

spose
i hav created a file stream. now lets say i apply dmo effects, custom dsp's or wtevr 2 this stream, using the bass dll. now the secondary streams tht i create, shud use the memory location of the 1st streams buffer, so tht i dont need 2 reapply al the dsp's and effects al over again 2 the second stream.

It sounds like a decoding channel (BASS_STREAM_DECODE flag) is what you want to use... set the DSP/FX on that, and use BASS_ChannelGetData to get the decoded (and effect'd) sample data.

Quote
a lil of topic now, but i wana no - wt order do custom dsp's get procesed in??

DSP functions are called in the order that you set them on the channel - 1st set is 1st applied, 2nd set is 2nd applied, etc...