Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
14efa74
[21171] Ensure unicode characters in app label are shown correctly
livecodepanos May 18, 2018
f6fc285
[21171] Added bugfix note
livecodepanos May 18, 2018
741c94e
[[ Bug 21304 ]] Clear unshared data when compacting stack
bwmilby Jun 4, 2018
46b2df3
[[ Bug ]] Use MCStringIsEmpty to check returned java strings
montegoulding Jun 19, 2018
37f9b5f
[[ Bug 21336 ]] Skip rendering if ECS_DONTDRAW true
montegoulding Jun 19, 2018
75d479d
[[ Bug 16366 ]] Fix ShowAll mode dirty rect
montegoulding Jun 19, 2018
1b2f2eb
[[ Bug 21279 ]] Clip objects when in fullscreen mode
montegoulding Jun 19, 2018
2319f02
[[ Bug 21356 ]] Fix black screen with acceleratedRendering at startup
montegoulding Jun 19, 2018
7926c45
[[ Bug 16736 ]] Fix crash when relayering objects below sprites
montegoulding Jun 20, 2018
355f197
Merge pull request #6581 from montegoulding/acceleratedrendering
livecodepanos Jun 21, 2018
1ba6ea8
[[ Android Archs ]] Fix android external filter pattern
montegoulding Jun 22, 2018
9a04b33
[[ mergExt ]] Update pointer
montegoulding Jun 22, 2018
91e38f7
[Bug] Change targetSdkVersion to 26 on android manifest
livecodepanos Jun 25, 2018
d77def8
Merge pull request #6589 from livecodepanos/bugfix_targetSdkVersion_26
livecodepanos Jun 25, 2018
eea85f4
[[ API 26 ]] Use app platform 16 with target sdk 26
livecodeali Jun 25, 2018
e61c89a
Merge pull request #6588 from livecodeali/bugfix-app_platform
livecodeali Jun 25, 2018
ca17386
Update thirdparty submodule
livecodeali Jun 26, 2018
ac50405
Merge pull request #6586 from montegoulding/mergextandroidarchs
livecodeali Jun 26, 2018
d635d0e
[Bug 21368] Ensure device can register for and receive notifications
livecodepanos Jun 26, 2018
c19f4f9
[Bug 21368] Added bugfix note
livecodepanos Jun 26, 2018
e0315eb
[[ Bug ]] Redraw the entire stack before hiding bitmap view
montegoulding Jun 28, 2018
759a7ed
[[ Bug 21386 ]] Set clipsToBounds of native container layer
montegoulding Jun 28, 2018
df251d2
Merge pull request #6598 from montegoulding/bugfix-21386
Jun 28, 2018
639583a
Remove unsupported Android min versions
livecodepanos Jun 28, 2018
7b51983
Merge pull request #6596 from montegoulding/redrawbeforehidingbitmap
livecodepanos Jun 28, 2018
47fc170
Merge pull request #6599 from livecodepanos/remove_unsupported_minver…
Jun 29, 2018
12162a1
Merge pull request #6593 from livecodepanos/bugfix-21368
Jun 29, 2018
2d7db4d
Merge pull request #6560 from bwmilby/bwm-bugfix-21304
Jun 29, 2018
aef5a99
[21171] Ensure correct encoding of app label
livecodepanos Jun 29, 2018
9fee820
Merge pull request #6535 from livecodepanos/bugfix-21171
livecodepanos Jun 29, 2018
ae30ee1
Updated ide submodule ptr
livecodepanos Jun 29, 2018
fff8668
[[ PlayerPanning ]] Add leftbalance, rightbalance, and pan properties…
livecodeian Jun 29, 2018
ed8c279
[[ PlayerPanning ]] Add methods to MCPlayer object to control left/ri…
livecodeian Jun 29, 2018
cc05230
[[ PlayerPanning ]] Add "audiopan", "leftbalance", and "rightbalance"…
livecodeian Jun 29, 2018
a95844c
[[ PlayerPanning ]] Add framework library includes needed by MacOSX p…
livecodeian Jun 29, 2018
5aa09ba
Merge branch 'develop-9.0' of https://github.com/livecode/livecode in…
livecodeian Jun 30, 2018
ea57b3d
[[ Bug 20211 ]] Fix crash in Mac player when changing filename repeat…
livecodeian Jul 1, 2018
ea1ff81
[[ Bug 20211 ]] Add release note
livecodeian Jul 1, 2018
57cef13
[[ Player ]] Fix player not playing without setting playrate
livecodeian Jul 1, 2018
f18fdc5
Merge branch 'bugfix-20211' into feature-player-pan-mac
livecodeian Jul 1, 2018
8f8cb29
[[ PlayerPanning ]] Set up audio processing tap with player object
livecodeian Jul 1, 2018
b615b7c
[[ PlayerPanning ]] Remove duplicate MCAVFoundationPlayer::Unload() m…
livecodeian Jul 1, 2018
6b2a50b
[[ Bug ]] Fix pattern to filter android externals
montegoulding Jul 2, 2018
8d8aeee
[[ PlayerPanning ]] Add dictionary entries for new properties
livecodeian Jul 2, 2018
b39e322
[[ PlayerPanning ]] Add release note.
livecodeian Jul 2, 2018
e7dd12b
Merge pull request #6601 from montegoulding/fixandroidext
livecodepanos Jul 2, 2018
22322cc
[[ Bug 21395 ]] Add release note
livecodeian Jul 2, 2018
39b35df
[[ Bug 20839 ]] Replace stipple effect with 50% opacity for disabled …
livecodeian Mar 27, 2018
87bc480
[[ Bug 20839 ]] Add release note
livecodeian Jul 2, 2018
87584ce
Merge pull request #6456 from livecodeian/bugfix-motif-stippled-text
livecodepanos Jul 3, 2018
dca90c9
[[ PlayerPanning ]] Doc tweaks
livecodeian Jul 4, 2018
705dd91
Merge pull request #6602 from livecodeian/bugfix-21395
livecodepanos Jul 4, 2018
ee81be0
Merge branch 'develop-9.0' of https://github.com/livecode/livecode in…
livecodeian Jul 4, 2018
7aa8aee
[[ PlayerPanning ]] Fix crash due to overrelease of m_player_item_vid…
livecodeian Jul 4, 2018
516d00b
[[ Bug 19420 ]] Fix crash on resume in commercial android engine
livecodeali Jul 4, 2018
9a52221
[[ PlayerPanning ]] Fix audio processing tap underrelease
livecodeian Jul 4, 2018
1360e8c
[[ PlayerPanning ]] Use separate audio processing tap for each track
livecodeian Jul 4, 2018
378b319
Do not split up .framework folders between MacOS and Resources/_MacOS…
trevordevore Jul 4, 2018
fefa67a
Merge pull request #6604 from livecodeali/bugfix-19420
Jul 5, 2018
1c8bbd7
Merge pull request #6606 from trevordevore/tkd-bugfix-21398
Jul 5, 2018
b8d6f0b
[[ PlayerPanning ]] Fix crash due to overrelease of m_player_item_vid…
livecodeian Jul 4, 2018
fcbbe45
Merge branch 'develop-9.0' of https://github.com/livecode/livecode in…
livecodeian Jul 5, 2018
15442cf
[[ Bug 20211 ]] Undo commit of changed submodule pointers
livecodeian Jul 5, 2018
7aa170c
Merge branch 'bugfix-20211' of https://github.com/livecodeian/livecod…
livecodeian Jul 5, 2018
677392a
[[ PlayerPanning ]] Check for errors in panning filter setup
livecodeian Jul 5, 2018
bf332aa
Merge pull request #6603 from livecodeian/feature-player-pan-mac
livecodepanos Jul 5, 2018
3f06200
[[ tsNet ]] Update pointer
techstrategies Jul 14, 2018
cbe6679
Merge pull request #6609 from techstrategies/tsnet-1.3.7
Jul 20, 2018
addc9d1
Merge remote-tracking branch 'upstream/develop-9.0' into merge-develo…
livecodeali Jul 24, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions builder/builder_utilities.livecodescript
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
script "BuilderUtilities"

constant kMergExtVersion = "2018-6-4"
constant kTSNetVersion = "1.3.6"
constant kMergExtVersion = "2018-6-22"
constant kTSNetVersion = "1.3.7"

local sEngineDir
local sWorkDir
Expand Down
9 changes: 7 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
BUILDBOT_PLATFORM_TRIPLES = (
'x86-linux-debian8',
'x86_64-linux-debian8',
'armv6-android-api26',
'armv6-android-sdk26_ndk16r15',
'universal-mac-macosx10.9', # Minimum deployment target
'universal-ios-iphoneos11.4',
'universal-ios-iphoneos11.2',
Expand Down Expand Up @@ -119,7 +119,8 @@ def exec_gyp(args):
def process_env_options(opts):
vars = ('OS', 'PLATFORM', 'GENERATOR_OUTPUT', 'FORMATS', 'DEPTH',
'WIN_MSVS_VERSION', 'XCODE_TARGET_SDK', 'XCODE_HOST_SDK',
'TARGET_ARCH', 'PERL', 'ANDROID_NDK_VERSION', 'ANDROID_PLATFORM',
'TARGET_ARCH', 'PERL', 'ANDROID_NDK_VERSION',
'ANDROID_NDK_PLATFORM_VERSION', 'ANDROID_PLATFORM',
'ANDROID_SDK', 'ANDROID_NDK', 'ANDROID_BUILD_TOOLS',
'ANDROID_TOOLCHAIN', 'ANDROID_API_VERSION',
'AR', 'CC', 'CXX', 'LINK', 'OBJCOPY', 'OBJDUMP',
Expand Down Expand Up @@ -422,6 +423,9 @@ def validate_android_tools(opts):
error('Android NDK not found; set $ANDROID_NDK')
opts['ANDROID_NDK'] = ndk

if opts['ANDROID_NDK_PLATFORM_VERSION'] is None:
opts['ANDROID_NDK_PLATFORM_VERSION'] = '16'

if opts['ANDROID_API_VERSION'] is None:
opts['ANDROID_API_VERSION'] = '26'

Expand Down Expand Up @@ -538,6 +542,7 @@ def configure_android(opts):

export_opts(opts, ('ANDROID_BUILD_TOOLS', 'ANDROID_NDK',
'ANDROID_PLATFORM', 'ANDROID_SDK',
'ANDROID_NDK_VERSION', 'ANDROID_NDK_PLATFORM_VERSION',
'ANDROID_API_VERSION',
'JAVA_SDK', 'AR', 'CC', 'CXX', 'LINK', 'OBJCOPY',
'OBJDUMP', 'STRIP'))
Expand Down
6 changes: 4 additions & 2 deletions config/android.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
'java_sdk_path%': '<!(echo ${JAVA_SDK})',
'android_sdk_path%': '<!(echo ${ANDROID_SDK})',
'android_ndk_path%': '<!(echo ${ANDROID_NDK})',
'android_api_version%': '<!(echo ${ANDROID_API_VERSION})',
'android_api_version%': '<!(echo ${ANDROID_API_VERSION})',
'android_ndk_platform_version%': '<!(echo ${ANDROID_NDK_PLATFORM_VERSION})',
'android_ndk_version%': '<!(echo ${ANDROID_NDK_VERSION})',
'android_platform%': '<!(echo ${ANDROID_PLATFORM})',
'android_build_tools%': '<!(echo ${ANDROID_BUILD_TOOLS})',
},
Expand All @@ -30,7 +32,7 @@
'strip': '<!(echo ${STRIP:-strip})',

'android_ndk_path%': '<(android_ndk_path)',
'android_api_version%': '<(android_api_version)',
'android_subplatform%': 'sdk<(android_api_version)_ndk<(android_ndk_platform_version)<(android_ndk_version)',
},

'target_defaults':
Expand Down
13 changes: 5 additions & 8 deletions docs/development/build-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,10 @@ Update the SDK:
Create a standalone toolchain (this simplifies setting up the build environment):

````bash
<<<<<<< HEAD
android-ndk-r14/build/tools/make_standalone_toolchain.py \
--arch arm --api 19 \
=======
android-ndk-r15/build/tools/make_standalone_toolchain.py \
--arch arm --api 26 \
>>>>>>> upstream/develop-9.0
--arch arm --api 16 --deprecated-headers \
--install-dir ${HOME}/android/toolchain/standalone
````
```

Add a couple of symlinks to allow the engine configuration script to find the Android toolchain:

Expand Down Expand Up @@ -86,6 +81,7 @@ AR="${BINDIR}/${TRIPLE}-ar"

# Android platform information
ANDROID_NDK_VERSION=r15
ANDROID_NDK_PLATFORM_VERSION=16
ANDROID_API_VERSION=26
ANDROID_PLATFORM=android-${ANDROID_API_VERSION}
ANDROID_NDK=${TOOLCHAIN}/android-ndk-${ANDROID_NDK_VERSION}
Expand All @@ -95,7 +91,8 @@ ANDROID_LIB_PATH=${TOOLCHAIN}/standalone/${TRIPLE}/lib

export JAVA_SDK
export CC CXX LINK AR
export ANDROID_PLATFORM ANDROID_NDK ANDROID_SDK ANDROID_BUILD_TOOLS
export ANDROID_PLATFORM ANDROID_NDK ANDROID_NDK_PLATFORM_VERSION
export ANDROID_SDK ANDROID_BUILD_TOOLS
export ANDROID_LIB_PATH ANDROID_API_VERSION
````

Expand Down
43 changes: 43 additions & 0 deletions docs/dictionary/property/audioPan.lcdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Name: audioPan

Type: property

Syntax: set the audioPan of <player> to <positive/negative percentage>

Summary:
Specifies the proportion of audio panned from one stereo channel to the other.

Introduced: 9.0.1

OS: mac

Platforms: desktop

Example:
set the audioPan of player "myVideoPlayer" to 0 -- stereo channels unaffected

Example:
set the audioPan of player "myVideoPlayer" to -50 -- 50% of the right channel audio moved to the left.

Example:
set the audioPan of player "myVideoPlayer" to 100 -- 100% of the left channel audio moved to the right.

Value:
The audioPan is a number between -100 and 100.
By default, the audioPan property is 0.

Description:
Use the audioPan property to pan audio from either the left or right channel to the other.
Negative values move audio from the right channel to the left.
Positive values move audio from the left channel to the right.
Setting the audioPan back to 0 will disable panning.

>**Important:** This property only has an effect on media files that contain stereo audio tracks.
> Mono audio tracks cannot currently be panned.

References: player (object), leftBalance (property), rightBalance (property)

Associations: player

Tags: multimedia

36 changes: 36 additions & 0 deletions docs/dictionary/property/leftBalance.lcdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Name: leftBalance

Type: property

Syntax: set the leftBalance of <player> to <percentage>

Summary:
Specifies the volume of the left stereo channel output of a player control.

Introduced: 9.0.1

OS: mac

Platforms: desktop

Example:
set the leftBalance of player "myVideoPlayer" to 100 -- maximum loudness

Value:
The leftBalance is a number between zero and 100.
By default, the leftBalance property is 100.

Description:
Use the leftBalance property to set the volume of audio played through the left speaker.

Setting the leftBalance to zero turns off audio to the left speaker.

>**Important:** This property only has an effect on media files that contain stereo audio tracks.
> Mono audio tracks cannot currently be balanced.

References: player (object), rightBalance (property), audioPan (property)

Associations: player

Tags: multimedia

3 changes: 2 additions & 1 deletion docs/dictionary/property/playLoudness.lcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ on the left side of the <player|player's> controller bar, which is
visible if the <player|player's> <showController> property is true.

References: play (command), beep (command), recordLoudness (function),
player (object), showController (property)
player (object), showController (property),
leftBalance (property), rightBalance (property), audioPan (property)

Tags: multimedia

36 changes: 36 additions & 0 deletions docs/dictionary/property/rightBalance.lcdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Name: rightBalance

Type: property

Syntax: set the rightBalance of <player> to <percentage>

Summary:
Specifies the volume of the right stereo channel output of a player control.

Introduced: 9.0.1

OS: mac

Platforms: desktop

Example:
set the rightBalance of player "myVideoPlayer" to 100 -- maximum loudness

Value:
The rightBalance is a number between zero and 100.
By default, the rightBalance property is 100.

Description:
Use the rightBalance property to set the volume of audio played through the right speaker.

Setting the rightBalance to zero turns off audio to the right speaker.

>**Important:** This property only has an effect on media files that contain stereo audio tracks.
> Mono audio tracks cannot currently be balanced.

References: player (object), rightBalance (property), audioPan (property)

Associations: player

Tags: multimedia

1 change: 1 addition & 0 deletions docs/notes/bugfix-16366.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ensure the area outside the stack rect is re-rendered when going to a new card in fullscreen mode showAll
1 change: 1 addition & 0 deletions docs/notes/bugfix-16736.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix crash when relayering objects with accelerated rendering true
1 change: 1 addition & 0 deletions docs/notes/bugfix-20211.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix Mac player crash when setting filename multiple times
1 change: 1 addition & 0 deletions docs/notes/bugfix-20839-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Improve appearance of disabled buttons when using Motif look-and-feel
1 change: 1 addition & 0 deletions docs/notes/bugfix-21171.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ensure unicode characters in app label are shown correctly on Android
1 change: 1 addition & 0 deletions docs/notes/bugfix-21279.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ensure objects are clipped correctly when rendering fullscreen mode leterbox with acceleratedRendering true
1 change: 1 addition & 0 deletions docs/notes/bugfix-21304.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Clear unshared data when compacting stack
1 change: 1 addition & 0 deletions docs/notes/bugfix-21336.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ensure only the top stack will render on mobile
1 change: 1 addition & 0 deletions docs/notes/bugfix-21356.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix black screen on Android when setting acceleratedRendering at startup
1 change: 1 addition & 0 deletions docs/notes/bugfix-21368.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ensure push notifications work on Android when targetSdkVersion=26
1 change: 1 addition & 0 deletions docs/notes/bugfix-21386.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix widgets with native layers not being clipped by their parent group rect on iOS
1 change: 1 addition & 0 deletions docs/notes/bugfix-21395.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix MacOSX player control not starting when playRate property is 0
1 change: 1 addition & 0 deletions docs/notes/bugfix-21398.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Do not split up .framework folders between MacOS and Resources/_MacOS folder
8 changes: 8 additions & 0 deletions docs/notes/feature-player-pan-mac.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# New stereo panning properties added to MacOSX Player object

leftBalance: control the volume of the left stereo channel.
rightBalance: control the volume of the right stereo channel.
audioPan: pan audio from one stereo channel to another.

Note: these properties currently require media files to have stereo audio tracks.
There will be no effect on mono or surround-sound formats.
4 changes: 4 additions & 0 deletions engine/kernel.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@
'libraries':
[
'$(SDKROOT)/usr/lib/libcups.dylib',
'$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
'$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
'$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
'$(SDKROOT)/System/Library/Frameworks/MediaToolbox.framework',
'$(SDKROOT)/System/Library/Frameworks/Quartz.framework',
],
},
Expand All @@ -174,8 +176,10 @@
{
'libraries!':
[
'$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
'$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreMedia.framework',
'$(SDKROOT)/System/Library/Frameworks/MediaToolbox.framework',
],
},
],
Expand Down
2 changes: 1 addition & 1 deletion engine/rsrc/android-manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
${INSTALL_LOCATION}>
${PUSH_PERMISSIONS}
${USES_PERMISSION}${USES_FEATURE}
<uses-sdk android:minSdkVersion="${MIN_SDK_VERSION}" android:targetSdkVersion="${MIN_SDK_VERSION}"/>
<uses-sdk android:minSdkVersion="${MIN_SDK_VERSION}" android:targetSdkVersion="26"/>
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
Expand Down
10 changes: 8 additions & 2 deletions engine/src/buttondraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ void MCButton::draw(MCDC *dc, const MCRectangle& p_dirty, bool p_isolated, bool
bool t_isvista = MCmajorosversion >= 0x0600 && MCcurtheme != NULL;

bool t_themed_menu = false;
bool t_use_alpha_layer = false;

if (entry != NULL)
{
Expand Down Expand Up @@ -352,7 +353,9 @@ void MCButton::draw(MCDC *dc, const MCRectangle& p_dirty, bool p_isolated, bool
if (MClook == LF_MOTIF)
{
setforeground(dc, DI_FORE, False);
dc->setfillstyle(FillStippled, nil, 0, 0);
dc->setopacity(127);
dc->begin(false);
t_use_alpha_layer = true;
}
else if (IsMacLF())
{
Expand Down Expand Up @@ -576,6 +579,9 @@ void MCButton::draw(MCDC *dc, const MCRectangle& p_dirty, bool p_isolated, bool
MCStringRef t_name = MCNameGetString(getname());
drawdirectionaltext(dc, rect.x + leftmargin, starty, t_name, m_font);
}

if (t_use_alpha_layer)
dc->end();

// MW-2012-01-27: [[ Bug 9432 ]] Native GTK handles focus borders itself
// so don't render the win95-style one.
Expand Down Expand Up @@ -1608,7 +1614,7 @@ void MCButton::drawtabs(MCDC *dc, MCRectangle &srect)
{
case LF_MOTIF:
setforeground(dc, DI_FORE, False);
dc->setfillstyle(FillStippled, nil, 0, 0);
dc->setopacity(127);
break;
case LF_MAC:
dc->setforeground(dc->getgray());
Expand Down
2 changes: 1 addition & 1 deletion engine/src/em-dc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ MCScreenDC::openwindow(Window p_window,
MCEmscriptenSetWindowRect(t_window, t_stack->view_getrect());

t_stack->view_configure(true);
t_stack->view_dirty_all();
t_stack->dirtyall();
}

void
Expand Down
30 changes: 30 additions & 0 deletions engine/src/exec-interface-player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,36 @@ void MCPlayer::SetPlayLoudness(MCExecContext& ctxt, uinteger_t p_loudness)
setloudness();
}

void MCPlayer::GetLeftBalance(MCExecContext &ctxt, double &r_left_balance)
{
r_left_balance = getleftbalance();
}

void MCPlayer::SetLeftBalance(MCExecContext &ctxt, double p_left_balance)
{
setleftbalance(MCMin(p_left_balance, 100.0));
}

void MCPlayer::GetRightBalance(MCExecContext &ctxt, double &r_right_balance)
{
r_right_balance = getrightbalance();
}

void MCPlayer::SetRightBalance(MCExecContext &ctxt, double p_right_balance)
{
setrightbalance(MCMin(p_right_balance, 100.0));
}

void MCPlayer::GetAudioPan(MCExecContext &ctxt, double &r_pan)
{
r_pan = getaudiopan();
}

void MCPlayer::SetAudioPan(MCExecContext &ctxt, double p_pan)
{
setaudiopan(MCClamp(p_pan, -100.0, 100.0));
}

void MCPlayer::GetTrackCount(MCExecContext& ctxt, uinteger_t& r_count)
{
r_count = gettrackcount();
Expand Down
2 changes: 2 additions & 0 deletions engine/src/globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,8 @@ void X_clear_globals(void)

MChooks = nil;

memset(&MClicenseparameters, 0, sizeof(MCLicenseParameters));

#if defined(MCSSL)
MCSocketsInitialize();
#endif
Expand Down
Loading