Where can I see more TSound source?

BlitzMax Forums/BlitzMax Beginners Area/Where can I see more TSound source?

Grey Alien(Posted 2006) [#1]
If I look at the BRL.Audio module, within Type TSound there are functions like this:

	Method Play:TChannel( alloced_channel:TChannel=Null )
		Return New TChannel
	End Method

The thing is that Play clearly does more than just return a channel, it actually plays the sample! So where can I see the source for that, or is it just in C++ and unavailable?


Yan(Posted 2006) [#2]
.


Grey Alien(Posted 2006) [#3]
thanks, I just don't understand how the Play method shown above doesn't do anything else apart from return a channel. It must be intercepted by the compiler as a low level keyword and then the sample is played.


Yan(Posted 2006) [#4]
.


Grey Alien(Posted 2006) [#5]
Yes thanks, didn't give me what I wanted.

Basically I wanted to Extend the TSound type so that I could use it in place of Tsound (with all the same functions etc) and not have to typecast my extended type all the time. I also wanted to avoid wrapping all of Tsounds functions in my type. Just can't seem to get to the bottom of this...


Yan(Posted 2006) [#6]
.


TartanTangerine (was Indiepath)(Posted 2006) [#7]
http://www.blitzbasic.com/Community/posts.php?topic=58187


Grey Alien(Posted 2006) [#8]
thanks, snaffled.