//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
#include <simgear/constants.h>
+#include <Main/fg_props.hxx>
+#include <Main/globals.hxx>
+
#include "morse.hxx"
// make a SGSoundSample morse code transmission for the specified string
SGSoundSample *FGMorse::make_ident( const string& id, const int freq ) {
+
+ if (globals->get_soundmgr()->is_working() == false) {
+ return 0;
+ }
+
char *idptr = (char *)id.c_str();
int length = 0;
// 4. create the simple sound and return
SGSoundSample *sample = new SGSoundSample( buffer, length,
- BYTES_PER_SECOND,
- false );
+ BYTES_PER_SECOND );
// clean up the buffer
delete [] buffer;