zdoom-macos-deps/test/libmpg123.cpp

27 lines
377 B
C++
Raw Normal View History

2020-12-26 09:39:44 +00:00
#include <mpg123.h>
int main(int argc, char **argv)
{
2021-05-16 07:05:31 +00:00
if (mpg123_init() != MPG123_OK)
{
return 1;
}
mpg123_handle* mh = mpg123_new(NULL, NULL);
2021-05-16 07:05:31 +00:00
if (mh == nullptr)
{
return 1;
}
if (mpg123_param(mh, MPG123_VERBOSE, 1, 0.) != MPG123_OK)
{
return 1;
}
mpg123_delete(mh);
mpg123_exit();
2021-05-16 07:05:31 +00:00
return 0;
2020-12-26 09:39:44 +00:00
}