05-23-2012 11:20 PM
I am trying to get the mmr audio library to play some mp3 files
but it keeps crashing
The code is indentical to the sample on
(and elsewhere in the documentation)
initially if I call
mmr_output_parameters(m_ctxt, audio_oid, NULL);
it crashes in strm_dict_key_get()
If I comment out that line it crashes in mmr_play() (sigsegv)
I am calling bps_initalize() elsewhere
I have enabled sound in the bar-descriptor.xml
Is there anything else that needs to be initialized? Has anybody else gotten this to work?
Kind of related is it possible / supported to play multiple sounds at the same time using mmr?
The documentation is not clear on this.
I am attempting to use mmr and not OpenAL since I want to play MP3 but see the related psot I am about to make
Solved! Go to Solution.
06-04-2012 02:30 PM
Thanks for the response I did post an update but i must have made it to the wrong post.
(see my related post)
once I fixed that it stopped crashing
After plenty of trial and error I got it to work.
I am also able to play multiple mp3 files at any given time.
I think I will use a hybrid model though, .wav files for the sound effects and .mp3 files for the backing track. I am finding the mp3 files do not seem to be as spunky was the wav file and they just seem off timing wise sometimes.
I am also a little surpised that mmr_stop() is so expensive, it caused glitches in my game, but I moved it to a different thread and all seems fine.
06-04-2012 02:48 PM
I'm glad you got it to work.
Using separate threads for such operations is a good idea. If you run into additional problems or find solutions from which others could benefit post away!