# SDL\_PauseAudio()

**URL:** <https://discourse.libsdl.org/t/sdl-pauseaudio/10471>\
**Category:** SDL Development\
**Created:** [April 4, 2004, 10:04pm UTC](https://discourse.libsdl.org/t/sdl-pauseaudio/10471 "2004-04-04T22:04:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mithilesh\_kumar](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/838e76/32.png) [@mithilesh\_kumar](https://discourse.libsdl.org/u/mithilesh_kumar)\
**Post date:** [April 4, 2004, 10:04pm UTC](https://discourse.libsdl.org/t/sdl-pauseaudio/10471/1 "2004-04-04T22:04:01Z")

</div>

Hi,

I’m trying to pause/unpause audio in my media player(on linux) using  
SDL\_PauseAudio(x) SDL\_PauseAudio(1) pauses the playback but when  
SDL\_PauseAudio(0) is invoked, audio is not resumed. The problem I see is  
that the sdl\_callback function is never called again when SDL\_PauseAudio(0)  
is invoked.

This same procedure works fine when I run my player on windows. Can anyone  
help me out? I’m using SDL-1.2.6 on both windows and linux (and also tested  
the problem with SDL-1.2.7)

Thanks,  
-Mithilesh\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Get head-hunted by 10,000 recruiters. [http://go.msnserver.com/IN/46246.asp](http://go.msnserver.com/IN/46246.asp)  
Post your CV on [naukri.com](http://naukri.com) today.

---

<div class="post-metadata">

**Author:** ![Vihang](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/v/c6cbf5/32.png) [@Vihang](https://discourse.libsdl.org/u/Vihang)\
**Post date:** [April 4, 2004, 11:06pm UTC](https://discourse.libsdl.org/t/sdl-pauseaudio/10471/2 "2004-04-04T23:06:44Z")

</div>

it can be the case that the application is exiting before the callback is  
being called.

Please check.

thanks\> ----- Original Message -----

> From: [mithi\_lesh@hotmail.com](mailto:mithi_lesh@hotmail.com) (mithilesh kumar)  
> To:   
> Sent: Monday, April 05, 2004 10:33 AM  
> Subject: [SDL] SDL\_PauseAudio()
> 
> > Hi,
> > 
> > I’m trying to pause/unpause audio in my media player(on linux) using  
> > SDL\_PauseAudio(x) SDL\_PauseAudio(1) pauses the playback but when  
> > SDL\_PauseAudio(0) is invoked, audio is not resumed. The problem I see is  
> > that the sdl\_callback function is never called again when  
> > SDL\_PauseAudio(0)  
> > is invoked.
> > 
> > This same procedure works fine when I run my player on windows. Can  
> > anyone  
> > help me out? I’m using SDL-1.2.6 on both windows and linux (and also  
> > tested  
> > the problem with SDL-1.2.7)
> > 
> > Thanks,  
> > -Mithilesh
> > 
> > * * *
> > 
> > Get head-hunted by 10,000 recruiters.  
> > [http://go.msnserver.com/IN/46246.asp](http://go.msnserver.com/IN/46246.asp)  
> > Post your CV on [naukri.com](http://naukri.com) today.
> > 
> > * * *
> > 
> > SDL mailing list  
> > SDL at [libsdl.org](http://libsdl.org)  
> > [http://www.libsdl.org/mailman/listinfo/sdl](http://www.libsdl.org/mailman/listinfo/sdl)
