Made to Order Software Corporation Logo

downloads

DefineSound

Tag Info
Tag Number: 
14
Tag Type: 
Define
Tag Flash Version: 
2
Brief Description: 

Declare a sound effect. This tag defines sound samples that can later be played back using either a StartSound or a DefineButtonSound. Note that the same DefineSound block can actually include multiple sound files and only part of the entire sound can be played back as required.

Tag Structure: 
struct swf_definesound {
	swf_tag			f_tag;		/* 14 */
	unsigned short		f_sound_id;
	unsigned		f_sound_format : 4;
	unsigned		f_sound_rate : 2;
	unsigned		f_sound_is_16bits : 1;
	unsigned		f_sound_is_stereo : 1;
	unsigned long		f_sound_samples_count;
	unsigned char		f_sound_data[<variable size>];
};

A DefineSound tag declares a set of samples of a sound effect or a music.

The sound samples can be compressed or not, stereo or not and 8 or 16 bits. The different modes are not all available in version 2, although the same tag is used in newer versions with additional capabilities.

The f_sound_is_16bits is always set to 1 (16bits samples) if the samples are compressed (neither Raw nor Uncompressed).

Made to Order Software new website!

Made to Order Software Corporation is proud to present its expanded and redesigned website:

https://www.m2osw.com/

Our new website features a shopping cart for instant purchases and downloads. It is easy to use: select your product and enter your address and credit card information... and that's it! You'll then gain access to the full version of the software that you can download immediately and begin using in minutes.

In addition, we have added user forums for questions, tips, comments, and suggestions for all our products. Our software engineers monitor these forums and offer ...