Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
massimomorara authored Feb 22, 2018
1 parent 9993f00 commit a41738d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yasap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,13 @@ class audioPlayer
AVFrame * aFrm { av_frame_alloc() };

int fc { 0 };
int cnt { 0 };

if ( nullptr == aFrm )
throw std::runtime_error("error allocating audio frame");

SDL_PauseAudioDevice(ad.devId, pause);

for ( ; aLoop ; ++cnt )
while ( aLoop )
{
// pause mutex safe area
{
Expand Down

0 comments on commit a41738d

Please sign in to comment.