Hello Dimitris,

Thanks for your tips! However, my problem is that when compiling my 
Gambas, it didn't include gb.sdl at all for some reason. I'd have to 
find out why before being able to proceed. On the other hand, this is 
true for my business machine in the office. My Laptop could have it, 
I'll check that later when I'm at home again :-)

Regards

Rolf


Dimitris Anogiatis schrieb:
> Hey Rolf,
> 
> This is what I got from the gambasdoc website for the gb.sdl.sound section
> ------------------------------------------------------------------
>  NEW Sound (gb.sdl.sound)
> *Syntax*
> 
> DIM hSound AS Sound <http://www.gambasdoc.org/help/comp/gb.sdl.sound/sound>
> 
> hSound = NEW Sound
> <http://www.gambasdoc.org/help/comp/gb.sdl.sound/sound> ( *File* AS
> String )
> 
>  Creates a new sound from a WAV file.
> ------------------------------------------------------------------
> 
> Now gb.sdl.sound has what it calls channels... it's how you can play sound
> effects
> in games (in WAV format). You can load WAVs and play them at the same time
> OR at a specific time moment depending on your application).
>  This is how you can play a sound in a channel
> ------------------------------------------------------------------
> Channel.Play (gb.sdl.sound)
> *Syntax*
> 
> SUB *Play* ( *[* *Sound* AS Sound
> <http://www.gambasdoc.org/help/comp/gb.sdl.sound/sound>, *Loops* AS
> Integer *]* )
> 
>  Plays the specified Sound on the channel.
> 
> With the *Loops* parameter, you can specify how many times the sound will be
> played.
> 
> If *Loops* is -1, then the sound is played forever.
> 
> By default, the sound is played once.
> ------------------------------------------------------------------
> 
> if you want to play MP3s or OGGs
> then you use the music object that's available in gb.sdl.sound
> I don't know if it's gb.sdl.sound that doesn't allow channels to play mp3 or
> m4a or other files
> in channels or SDL itself... (it would be awesome if we could do that then
> mixing music would
> be a breeze.
> 
> I would also check the music player example in the sound section of the
> gambas examples
> as it does use gb.sdl.sound
> 
> Hope this helps
> 
> Regards
> Dimitris
> 
> On Mon, Aug 17, 2009 at 12:42 AM, Rolf-Werner Eilert <
> eilert-sprac...@t-online.de> wrote:
> 
>> Rob schrieb:
>>> On Friday 14 August 2009 08:15 am, Joshua Higgins wrote:
>>>> I'm sure there is an example project that handles playing wav files...
>>> I'm pretty sure I or someone else posted a simple WAV player example to
>> the
>>> list shortly after the gb.sdl component was released (I know I wrote one
>>> but someone might have beaten me to it.)  No idea about recording
>>> though....
>>>
>>> Rob
>>>
>> Meanwhile I found an example app, but I haven't gb.sdl running - what
>> are the dependencies or what would I have to do that it compiles?
>>
>> Rolf
>>
>>



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to