зеркало из https://github.com/mozilla/shumway.git
Fake sound support.
This commit is contained in:
Родитель
1acc6c7393
Коммит
a48903d1b1
|
@ -77,6 +77,12 @@ const LoaderDefinition = (function () {
|
|||
case SWF_TAG_CODE_DEFINE_SHAPE4:
|
||||
symbol = defineShape(swfTag, symbols);
|
||||
break;
|
||||
case SWF_TAG_CODE_DEFINE_SOUND:
|
||||
symbol = {
|
||||
type: 'sound',
|
||||
id: swfTag.id
|
||||
};
|
||||
break;
|
||||
case SWF_TAG_CODE_DEFINE_SPRITE:
|
||||
var depths = { };
|
||||
var frame = { type: 'frame' };
|
||||
|
@ -561,6 +567,10 @@ const LoaderDefinition = (function () {
|
|||
graphics: graphics
|
||||
};
|
||||
break;
|
||||
case 'sound':
|
||||
symbolInfo.className = 'flash.media.Sound';
|
||||
symbolInfo.props = { };
|
||||
break;
|
||||
case 'sprite':
|
||||
var frameCount = symbol.frameCount;
|
||||
var frameLabels = { };
|
||||
|
|
|
@ -328,6 +328,6 @@ var FRAME_LABEL = {
|
|||
var DEFINE_SOUND = {
|
||||
id: UI16,
|
||||
$$soundFlags: UI8,
|
||||
samplesCound: UI32,
|
||||
samplesCount: UI32,
|
||||
soundData: BINARY(0)
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче