[SDL] No Sound Output

Bill Kendrick nbs at sonic.net
Wed Nov 2 11:20:48 PST 2005


On Wed, Nov 02, 2005 at 11:32:14AM -0500, Timm Murray wrote:
> 
> I'm on Gentoo.  I emerged SDL_mixer again, but it still segfaults.


What does your code look like now?  Before, you had:

 printf( "Playing file: %s\n", file );
 wav = Mix_LoadWAV( file );
 ret = Mix_PlayChannel( -1, wav, -1 );
 if( 0 > ret ) {
  printf( "Error playing audio: %s\n", Mix_GetError() );

Are you sure the sound file loaded?  (You don't check if "wav == NULL")

-bill!




More information about the SDL mailing list