EditorPanel providing audio diagnostics for debugging the music editor. More...
#include <music_audio_debug_panel.h>


Public Member Functions | |
| MusicAudioDebugPanel (editor::music::MusicPlayer *player) | |
| std::string | GetId () const override |
| Unique identifier for this panel. | |
| std::string | GetDisplayName () const override |
| Human-readable name shown in menus and title bars. | |
| std::string | GetIcon () const override |
| Material Design icon for this panel. | |
| std::string | GetEditorCategory () const override |
| Editor category this panel belongs to. | |
| int | GetPriority () const override |
| Get display priority for menu ordering. | |
| void | Draw (bool *p_open) override |
| Draw the panel content. | |
Public Member Functions inherited from yaze::editor::EditorPanel | |
| virtual | ~EditorPanel ()=default |
| virtual void | OnOpen () |
| Called when panel becomes visible. | |
| virtual void | OnClose () |
| Called when panel is hidden. | |
| virtual void | OnFocus () |
| Called when panel receives focus. | |
| virtual PanelCategory | GetPanelCategory () const |
| Get the lifecycle category for this panel. | |
| virtual bool | IsEnabled () const |
| Check if this panel is currently enabled. | |
| virtual std::string | GetDisabledTooltip () const |
| Get tooltip text when panel is disabled. | |
| virtual std::string | GetShortcutHint () const |
| Get keyboard shortcut hint for display. | |
| virtual float | GetPreferredWidth () const |
| Get preferred width for this panel (optional) | |
| virtual bool | IsVisibleByDefault () const |
| Whether this panel should be visible by default. | |
| virtual std::string | GetParentPanelId () const |
| Get parent panel ID for cascade behavior. | |
| virtual bool | CascadeCloseChildren () const |
| Whether closing this panel should close child panels. | |
Private Member Functions | |
| void | DrawBackendInfo (emu::audio::IAudioBackend *backend) |
| void | DrawQueueStatus (emu::audio::IAudioBackend *backend) |
| void | DrawResamplingStatus (emu::audio::IAudioBackend *backend) |
| void | DrawDspStatus () |
| void | DrawApuStatus () |
| void | DrawDebugActions () |
Private Attributes | |
| editor::music::MusicPlayer * | player_ = nullptr |
EditorPanel providing audio diagnostics for debugging the music editor.
This panel displays detailed information about the audio pipeline including:
Definition at line 25 of file music_audio_debug_panel.h.
|
inlineexplicit |
Definition at line 27 of file music_audio_debug_panel.h.
|
inlineoverridevirtual |
Unique identifier for this panel.
IDs should be:
Implements yaze::editor::EditorPanel.
Definition at line 34 of file music_audio_debug_panel.h.
|
inlineoverridevirtual |
Human-readable name shown in menus and title bars.
Implements yaze::editor::EditorPanel.
Definition at line 35 of file music_audio_debug_panel.h.
|
inlineoverridevirtual |
Material Design icon for this panel.
Implements yaze::editor::EditorPanel.
Definition at line 36 of file music_audio_debug_panel.h.
References ICON_MD_BUG_REPORT.
|
inlineoverridevirtual |
Editor category this panel belongs to.
Implements yaze::editor::EditorPanel.
Definition at line 37 of file music_audio_debug_panel.h.
|
inlineoverridevirtual |
Get display priority for menu ordering.
Reimplemented from yaze::editor::EditorPanel.
Definition at line 38 of file music_audio_debug_panel.h.
|
inlineoverridevirtual |
Draw the panel content.
| p_open | Pointer to visibility flag (nullptr if not closable) |
Called by PanelManager when the panel is visible. Do NOT call ImGui::Begin/End - the PanelWindow wrapper handles that. Just draw your content directly.
Implements yaze::editor::EditorPanel.
Definition at line 44 of file music_audio_debug_panel.h.
References yaze::emu::Emulator::audio_backend(), DrawApuStatus(), DrawBackendInfo(), DrawDebugActions(), DrawDspStatus(), DrawQueueStatus(), DrawResamplingStatus(), yaze::editor::music::MusicPlayer::emulator(), ICON_MD_ERROR, ICON_MD_INFO, yaze::emu::Emulator::is_snes_initialized(), and player_.
|
inlineprivate |
Definition at line 80 of file music_audio_debug_panel.h.
References yaze::emu::audio::IAudioBackend::GetBackendName(), yaze::emu::audio::IAudioBackend::GetConfig(), and ICON_MD_SPEAKER.
Referenced by Draw().

|
inlineprivate |
Definition at line 93 of file music_audio_debug_panel.h.
References yaze::emu::audio::IAudioBackend::GetStatus(), ICON_MD_QUEUE_MUSIC, and ICON_MD_WARNING.
Referenced by Draw().

|
inlineprivate |
Definition at line 116 of file music_audio_debug_panel.h.
References yaze::emu::audio::IAudioBackend::GetConfig(), yaze::editor::music::MusicPlayer::GetState(), ICON_MD_TRANSFORM, ICON_MD_WARNING, yaze::emu::audio::IAudioBackend::IsAudioStreamEnabled(), and player_.
Referenced by Draw().

|
inlineprivate |
Definition at line 149 of file music_audio_debug_panel.h.
References yaze::editor::music::MusicPlayer::GetDspStatus(), ICON_MD_MEMORY, and player_.
Referenced by Draw().

|
inlineprivate |
Definition at line 173 of file music_audio_debug_panel.h.
References yaze::editor::music::MusicPlayer::GetApuStatus(), ICON_MD_TIMER, and player_.
Referenced by Draw().

|
inlineprivate |
Definition at line 232 of file music_audio_debug_panel.h.
References yaze::editor::music::MusicPlayer::ClearAudioQueue(), yaze::editor::music::MusicPlayer::ForceNewFrame(), ICON_MD_BUILD, player_, yaze::editor::music::MusicPlayer::ReinitAudio(), and yaze::editor::music::MusicPlayer::ResetDspBuffer().
Referenced by Draw().

|
private |
Definition at line 255 of file music_audio_debug_panel.h.
Referenced by Draw(), DrawApuStatus(), DrawDebugActions(), DrawDspStatus(), and DrawResamplingStatus().