mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-23 04:12:13 +00:00
add vorbisenc test
[skip build]
This commit is contained in:
parent
3982c51e02
commit
e3e47ce0ea
1 changed files with 15 additions and 0 deletions
15
test/vorbisenc.cpp
Normal file
15
test/vorbisenc.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <vorbis/vorbisenc.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
vorbis_info info;
|
||||
vorbis_info_init(&info);
|
||||
|
||||
AEDI_EXPECT(vorbis_encode_setup_managed(&info, 2, 44100, -1, 128 * 1024, -1) == 0);
|
||||
AEDI_EXPECT(vorbis_encode_ctl(&info, OV_ECTL_RATEMANAGE2_SET, nullptr) == 0);
|
||||
AEDI_EXPECT(vorbis_encode_setup_init(&info) == 0);
|
||||
|
||||
vorbis_info_clear(&info);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue