Bug 171562 - SDL_mixer leaves music.raw behind
Summary: SDL_mixer leaves music.raw behind
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: SDL_mixer
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brian Pepple
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-23 06:59 UTC by Ville Skyttä
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-11-11 03:07:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix music.raw trash, duplicate audio device opens, memory leak (723 bytes, patch)
2005-11-07 22:52 UTC, Ville Skyttä
no flags Details | Diff

Description Ville Skyttä 2005-10-23 06:59:46 UTC
Playing any file through SDL_mixer appears to leave "music.raw" behind to the 
current working directory.  For example:  
  
    $ ls -l music.raw  
    ls: music.raw: No such file or directory  
    $ playmus /usr/share/sounds/alsa/Noise.wav  
    Opened audio at 22050 Hz 16 bit stereo, 4096 bytes audio buffer  
    Playing /usr/share/sounds/alsa/Noise.wav  
    $ ls -l music.raw  
    -rw-------  1 scop scop 0 Oct 23 09:56 music.raw  
 
Also happens with playwave as well as apps using SDL_mixer libs.  music.raw 
has something to do with mikmod, but this seems to happen with all sound 
files.  Other apps using mikmod (and mikmod itself) don't seem to behave that 
way, so it looks like a SDL_mixer issue.

Comment 1 Ville Skyttä 2005-11-07 22:52:35 UTC
Created attachment 120798 [details]
Fix music.raw trash, duplicate audio device opens, memory leak

Okay, found the fix in upstream CVS.  This patch cures the music.raw trashing
problem, avoids mikmod/SDL_mixer possibly trying to open audio devices multiple
times, as well as fixes a memory leak.

Comment 2 Brian Pepple 2005-11-11 03:07:49 UTC
Applied patch, and should be in next batch of signed rpms.  Thanks, Ville.


Note You need to log in before you can comment on or make changes to this bug.