Where can I see more TSound source?
BlitzMax Forums/BlitzMax Beginners Area/Where can I see more TSound source?
| ||
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? |
| ||
. |
| ||
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. |
| ||
. |
| ||
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... |
| ||
. |
| ||
http://www.blitzbasic.com/Community/posts.php?topic=58187 |
| ||
thanks, snaffled. |