Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

SDL2_mixer: no such audio device [SOLVED]

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 bonsairobo   Members   

107
Like
0Likes
Like

Posted 29 July 2013 - 04:23 PM

I can't seem to open an audio device with SDL2_mixer. Calling Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024) gives the error "no such audio device". I only got one warning when building SDL2_mixer (MP3 support disabled, even though I have smpeg dev libraries). I built from the source in the Hg repo. I'm on Ubuntu 12.04. What's going on?

 

EDIT: I'm dumb. I didn't have libasound2-dev or libpulse-dev when I built the SDL core library. I didn't know SDL2_mixer was dependent on the sound system of SDL. Fixed by recompiling.


Edited by bonsairobo, 29 July 2013 - 05:40 PM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.