[Informational][Audio] Audio refactorization for 3.3/3.4 #3226

Closed
opened 2019-12-27 12:45:03 +01:00 by Drapersniper · 1 comment
Drapersniper commented 2019-12-27 12:45:03 +01:00 (Migrated from github.com)

Goals

  1. Simply audio to make maintenance easier
  2. Expose a large part of the audio functionality through public APIs
  3. Reduce duplicated code
  4. Improve performance

Steps

  • Separate Audio file into multiple parts
  • Make version guaranteed Public APIs that the Audio cog makes a use of
  • Enforce Lavalink.jar for the public API on a non standard port that can be overwritten by an external API
  • Improve Audios namespace
  • Type hint audio fully

Public API planned functionality

  1. Enqueue tracks
  2. Insert track on 0 index
  3. Skip Tracks
  4. Stop playback
  5. Change volume
  6. Expose YouTube and Spotify APIs
  7. Expose Local and Global cache entries
  8. Pause playback
  9. Shuffle Tracks

Note: The plan to ensure the API uses all the existing audio Restrictions
such as DJ Role and restricted keywords and vote system.

## Goals 1. Simply audio to make maintenance easier 2. Expose a large part of the audio functionality through public APIs 3. Reduce duplicated code 4. Improve performance ## Steps - [x] Separate Audio file into multiple parts - [ ] Make version guaranteed Public APIs that the Audio cog makes a use of - [ ] Enforce Lavalink.jar for the public API on a non standard port that can be overwritten by an external API - [x] Improve Audios namespace - [x] Type hint audio fully ### Public API planned functionality 1. Enqueue tracks 2. Insert track on 0 index 3. Skip Tracks 4. Stop playback 5. Change volume 6. Expose YouTube and Spotify APIs 7. Expose Local and Global cache entries 8. Pause playback 9. Shuffle Tracks Note: The plan to ensure the API uses all the existing audio Restrictions such as DJ Role and restricted keywords and vote system.
mikeshardmind commented 2019-12-28 09:01:07 +01:00 (Migrated from github.com)

Note: As the required changes would either be additions to the parts of the bot we do guarantee or modifications/removals of parts not covered under a versioning guarantee, these changes can be made whenever deemed ready, The version here could very well be 3.2.1 should they be ready and reviewed at that point, however unlikely that may be given the scope of the changes intended.

Note: As the required changes would either be additions to the parts of the bot we do guarantee or modifications/removals of parts not covered under a versioning guarantee, these changes can be made whenever deemed ready, The version here could very well be 3.2.1 should they be ready and reviewed at that point, however unlikely that may be given the scope of the changes intended.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#3226
No description provided.