Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ PlayerPanning ]] Add stereo balance & panning properties to mac player#6603

Merged
livecodepanos merged 22 commits into
livecode:develop-9.0from
livecodeian:feature-player-pan-mac
Jul 5, 2018
Merged

[[ PlayerPanning ]] Add stereo balance & panning properties to mac player#6603
livecodepanos merged 22 commits into
livecode:develop-9.0from
livecodeian:feature-player-pan-mac

Conversation

@livecodeian

Copy link
Copy Markdown
Contributor

No description provided.

@montegoulding montegoulding left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @livecodeian just a few tweaks to the docs

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

Introduced: 9.0.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@livecodeian Can you add Associations: player to the doc

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

Introduced: 9.0.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again Associations: player

Comment thread docs/dictionary/property/audioPan.lcdoc Outdated
By default, the audioPan property is 0.

Description:
Use the audioPan property to pan audio from the left & right channels to the other.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@livecodeian I'm wondering about:
Use the audioPan property to pan audio from either the left or right channel to the other.

Comment thread docs/dictionary/property/audioPan.lcdoc Outdated
Positive values move audio from the left channel to the right.
Setting the audioPan back to 0 will disable panning.

Important:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@livecodeian this should be block quote with bold Important:

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


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

Important:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@livecodeian see note about this being a block quote above


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

Important:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@livecodeian ditto association and block quote

@@ -0,0 +1,8 @@
# New stereo panning properties added to MacOSX Player object

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not worth worrying about but we should use macOS

@montegoulding

Copy link
Copy Markdown
Contributor

@livecode-vulcan review ok dca90c9

@livecode-vulcan

Copy link
Copy Markdown
Contributor

💙 review by @montegoulding ok dca90c9

@montegoulding

Copy link
Copy Markdown
Contributor

@livecode-vulcan review not ok dca90c9

@livecodepanos found a crash

@livecode-vulcan

Copy link
Copy Markdown
Contributor

💔 review by @montegoulding not ok dca90c9

@montegoulding montegoulding left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@livecodeian sorry I missed that crash. I've just found one more little tweak which looks like a potential crash to me.


MTAudioProcessingTapRef t_tap;
OSStatus t_error;
t_error = MTAudioProcessingTapCreate(kCFAllocatorDefault, &t_callbacks, kMTAudioProcessingTapCreationFlag_PostEffects, &t_tap);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@livecodeian we should check t_error here and return false on an error then check it below. At the moment we could be setting r_tap to the uninitialised t_tap here and calling CFRelease on it

@montegoulding

Copy link
Copy Markdown
Contributor

@livecode-vulcan review ok 677392a

@livecode-vulcan

Copy link
Copy Markdown
Contributor

💙 review by @montegoulding ok 677392a

livecode-vulcan added a commit that referenced this pull request Jul 5, 2018
[[ PlayerPanning ]] Add stereo balance & panning properties to mac player
@livecode-vulcan

Copy link
Copy Markdown
Contributor

😎 test success 677392a

  • try-community-armv6-android-sdk26_ndk16r15: success
  • try-community-armv7-android-sdk26_ndk16r15: success
  • try-community-arm64-android-sdk26_ndk16r15: success
  • try-community-x86-android-sdk26_ndk16r15: success
  • try-community-x86_64-android-sdk26_ndk16r15: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos11.4: success
  • try-community-universal-ios-iphonesimulator11.4: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants