![]() |
|
#1
|
|||
|
|||
Playing sound in FltkGreetings. I am a new member and a beginner. Please help me with the following learner's code. I am using audiere and fltk to play a sound file. I need to play a cat sound file when the sing button is clicked in cat window and a dog sound when a sing button is clicked in a dog widow. I tried to use the sound functions from the callback functions, but it is not working. Please suggest a solution.
CPP / C++ / C Code:
Last edited by LuciWiz : 07-Sep-2006 at 10:06.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: Playing sound in FltkNo response
OK. I have solved the problem. I created a derived window class and wrapped the sound function inside. Now it is working. I am posting the code, if anybody is interested. It uses the ripping of a simple wrapping example from fltk site. Code:
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 16:41 |
| Re: Derived FLTK Classes | cable_guy_67 | FLTK Forum | 0 | 26-Jun-2005 21:07 |
| FLTK with GLUT | usmsci | FLTK Forum | 4 | 26-Nov-2004 17:21 |
| fltk and ncurses | podarok | FLTK Forum | 2 | 08-Nov-2004 08:45 |
| Welcome to the FLTK Forums | dsmith | FLTK Forum | 0 | 08-Sep-2004 07:58 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The