Skip to content

EV3-G API Sound - #396

Merged
dwalton76 merged 1 commit into
ev3dev:developfrom
dwalton76:ev3g-api-sound2
Oct 8, 2017
Merged

dwalton76 merged 1 commit into
ev3dev:developfrom
dwalton76:ev3g-api-sound2

Conversation

@dwalton76

Copy link
Copy Markdown
Collaborator

No description provided.

@dwalton76

Copy link
Copy Markdown
Collaborator Author

For issue #358

Comment thread ev3dev/sound.py


class Sound:
class Sound(object):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we want to do this? Can't you already instantiate the class if desired?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

For consistency with all of our other classes.

Comment thread ev3dev/sound.py
PLAY_WAIT_FOR_COMPLETE,
PLAY_NO_WAIT_FOR_COMPLETE,
PLAY_LOOP
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@WasabiFan this may answer your question above: @dwalton introduces these parameters, so the Sound class is now stateful. But, @dwalton, why are these capitalized? These should be user settings, not constants, right?

@ddemidov ddemidov Oct 4, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, sorry. These are not parameters, these are types of operation.

@dwalton76
dwalton76 merged commit ef23296 into ev3dev:develop Oct 8, 2017
@dwalton76
dwalton76 deleted the ev3g-api-sound2 branch October 8, 2017 13:29
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.

3 participants