Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio manager uninitialised music track buffers #97

Open
twaritwaikar opened this issue Mar 16, 2019 · 0 comments
Open

Audio manager uninitialised music track buffers #97

twaritwaikar opened this issue Mar 16, 2019 · 0 comments
Labels
bug/code Some code isn't working right subject: Symphony Related to the audio management system
Milestone

Comments

@twaritwaikar
Copy link
Member

twaritwaikar commented Mar 16, 2019

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

@twaritwaikar twaritwaikar self-assigned this Apr 14, 2019
@twaritwaikar twaritwaikar added the bug/code Some code isn't working right label Apr 14, 2019
@twaritwaikar twaritwaikar added this to the Rubeus v1.5 milestone Apr 14, 2019
@twaritwaikar twaritwaikar added the subject: Symphony Related to the audio management system label Apr 14, 2019
@twaritwaikar twaritwaikar removed their assignment Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/code Some code isn't working right subject: Symphony Related to the audio management system
Projects
None yet
Development

No branches or pull requests

1 participant