зеркало из https://github.com/mozilla/pjs.git
Bug 461281 - libsydney audio changes to stop stderr spam - rs=roc
This commit is contained in:
Родитель
06611e4c3a
Коммит
7194e441b6
|
@ -5,4 +5,4 @@ the Mozilla build system.
|
|||
|
||||
http://svn.annodex.net/libsydneyaudio/trunk
|
||||
|
||||
The svn revision number used was r3731.
|
||||
The svn revision number used was r3733.
|
||||
|
|
|
@ -55,6 +55,21 @@ struct sa_stream {
|
|||
unsigned int period_bytes;
|
||||
};
|
||||
|
||||
/*
|
||||
* -----------------------------------------------------------------------------
|
||||
* Error Handler to prevent output to stderr
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
static void
|
||||
quiet_error_handler(const char* file,
|
||||
int line,
|
||||
const char* function,
|
||||
int err,
|
||||
const char* format,
|
||||
...)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* -----------------------------------------------------------------------------
|
||||
* Startup and shutdown functions
|
||||
|
@ -116,6 +131,9 @@ sa_stream_open(sa_stream_t *s) {
|
|||
return SA_ERROR_INVALID;
|
||||
}
|
||||
|
||||
/* Turn off debug output to stderr */
|
||||
snd_lib_error_set_handler(quiet_error_handler);
|
||||
|
||||
if (snd_pcm_open(&s->output_unit,
|
||||
"default",
|
||||
SND_PCM_STREAM_PLAYBACK,
|
||||
|
|
Загрузка…
Ссылка в новой задаче