Skip to content

Comments

Value setter for various types of audio players#527

Draft
lightest wants to merge 3 commits intopsychopy:2022.2.3from
lightest:set_note_impl
Draft

Value setter for various types of audio players#527
lightest wants to merge 3 commits intopsychopy:2022.2.3from
lightest:set_note_impl

Conversation

@lightest
Copy link
Contributor

@lightest lightest commented Sep 7, 2022

To satisfy the desire to change tone/audio track as frequent as you want.

Originally inspired by this bug:
https://discourse.psychopy.org/t/repeated-sound-plays-inconsistently-after-a-few-minutes/30374/5

psychoPy portion of the fix:
psychopy/psychopy#5115

cid: CU-3h645y3

@peircej
Copy link
Member

peircej commented Sep 8, 2022

}

// Analyse the value and change the type of player if needed.
const valSupported = this._player.constructor.checkValueSupport(value);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not working fully yet. Issues arise when trying to convert from one type of player to the other and passing note as a string.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants