Skip to content

Audio manager uninitialised music track buffers #97

@twaritwaikar

Description

@twaritwaikar

Master HEAD: cad1c9e

Description:

void RSymphony::addSoundTrack(const int count)

This file confuses sound tracks and music tracks at some places. This results in uninitialized buffers and causes a segmentation fault if used in a certain way.

Issue Presentation Code:

	using namespace Rubeus;
	using namespace Rubeus::AudioComponents;

	// Gain access to the audio manager
	auto * audio_manager = Rubeus::Engine->getCurrentLevelAudioManager();

	audio_manager->addMusicTrack(1);

	audio_manager->loadTrack(MUSIC_TRACK, TRACK_0, "Assets/bgmusic.wav", 20, true);

This code snippet gives a segmentation fault due to unspecified buffers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/codeSome code isn't working rightsubject: SymphonyRelated to the audio management system

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions