-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathLowLevel.cs
1664 lines (1173 loc) · 49.7 KB
/
LowLevel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Runtime.InteropServices;
namespace Xiph.LowLevel
{
public partial class NativeConstants
{
/// _OGG_H ->
/// Error generating expression: Der Wert darf nicht NULL sein.
///Parametername: node
public const string _OGG_H = "";
/// _OS_TYPES_H ->
/// Error generating expression: Der Wert darf nicht NULL sein.
///Parametername: node
public const string _OS_TYPES_H = "";
/// _ogg_malloc -> malloc
/// Error generating expression: Value malloc is not resolved
public const string _ogg_malloc = "malloc";
/// _ogg_calloc -> calloc
/// Error generating expression: Value calloc is not resolved
public const string _ogg_calloc = "calloc";
/// _ogg_realloc -> realloc
/// Error generating expression: Value realloc is not resolved
public const string _ogg_realloc = "realloc";
/// _ogg_free -> free
/// Error generating expression: Value free is not resolved
public const string _ogg_free = "free";
/// _vorbis_codec_h_ ->
/// Error generating expression: Der Wert darf nicht NULL sein.
///Parametername: node
public const string _vorbis_codec_h_ = "";
/// OV_FALSE -> -1
public const int OV_FALSE = -1;
/// OV_EOF -> -2
public const int OV_EOF = -2;
/// OV_HOLE -> -3
public const int OV_HOLE = -3;
/// OV_EREAD -> -128
public const int OV_EREAD = -128;
/// OV_EFAULT -> -129
public const int OV_EFAULT = -129;
/// OV_EIMPL -> -130
public const int OV_EIMPL = -130;
/// OV_EINVAL -> -131
public const int OV_EINVAL = -131;
/// OV_ENOTVORBIS -> -132
public const int OV_ENOTVORBIS = -132;
/// OV_EBADHEADER -> -133
public const int OV_EBADHEADER = -133;
/// OV_EVERSION -> -134
public const int OV_EVERSION = -134;
/// OV_ENOTAUDIO -> -135
public const int OV_ENOTAUDIO = -135;
/// OV_EBADPACKET -> -136
public const int OV_EBADPACKET = -136;
/// OV_EBADLINK -> -137
public const int OV_EBADLINK = -137;
/// OV_ENOSEEK -> -138
public const int OV_ENOSEEK = -138;
/// _OV_FILE_H_ ->
/// Error generating expression: Der Wert darf nicht NULL sein.
///Parametername: node
public const string _OV_FILE_H_ = "";
/// NOTOPEN -> 0
public const int NOTOPEN = 0;
/// PARTOPEN -> 1
public const int PARTOPEN = 1;
/// OPENED -> 2
public const int OPENED = 2;
/// STREAMSET -> 3
public const int STREAMSET = 3;
/// INITSET -> 4
public const int INITSET = 4;
/// _OV_ENC_H_ ->
/// Error generating expression: Der Wert darf nicht NULL sein.
///Parametername: node
public const string _OV_ENC_H_ = "";
/// OV_ECTL_RATEMANAGE2_GET -> 0x14
public const int OV_ECTL_RATEMANAGE2_GET = 20;
/// OV_ECTL_RATEMANAGE2_SET -> 0x15
public const int OV_ECTL_RATEMANAGE2_SET = 21;
/// OV_ECTL_LOWPASS_GET -> 0x20
public const int OV_ECTL_LOWPASS_GET = 32;
/// OV_ECTL_LOWPASS_SET -> 0x21
public const int OV_ECTL_LOWPASS_SET = 33;
/// OV_ECTL_IBLOCK_GET -> 0x30
public const int OV_ECTL_IBLOCK_GET = 48;
/// OV_ECTL_IBLOCK_SET -> 0x31
public const int OV_ECTL_IBLOCK_SET = 49;
/// OV_ECTL_COUPLING_GET -> 0x40
public const int OV_ECTL_COUPLING_GET = 64;
/// OV_ECTL_COUPLING_SET -> 0x41
public const int OV_ECTL_COUPLING_SET = 65;
/// OV_ECTL_RATEMANAGE_GET -> 0x10
public const int OV_ECTL_RATEMANAGE_GET = 16;
/// OV_ECTL_RATEMANAGE_SET -> 0x11
public const int OV_ECTL_RATEMANAGE_SET = 17;
/// OV_ECTL_RATEMANAGE_AVG -> 0x12
public const int OV_ECTL_RATEMANAGE_AVG = 18;
/// OV_ECTL_RATEMANAGE_HARD -> 0x13
public const int OV_ECTL_RATEMANAGE_HARD = 19;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct vorbis_info
{
/// int
public int version;
/// int
public int channels;
/// int
public int rate;
/// int
public int bitrate_upper;
/// int
public int bitrate_nominal;
/// int
public int bitrate_lower;
/// int
public int bitrate_window;
/// void*
public IntPtr codec_setup;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct vorbis_dsp_state
{
/// int
public int analysisp;
/// vorbis_info*
public IntPtr vi;
/// float**
public IntPtr pcm;
/// float**
public IntPtr pcmret;
/// int
public int pcm_storage;
/// int
public int pcm_current;
/// int
public int pcm_returned;
/// int
public int preextrapolate;
/// int
public int eofflag;
/// int
public int lW;
/// int
public int W;
/// int
public int nW;
/// int
public int centerW;
/// ogg_int64_t->__int64
public long granulepos;
/// ogg_int64_t->__int64
public long sequence;
/// ogg_int64_t->__int64
public long glue_bits;
/// ogg_int64_t->__int64
public long time_bits;
/// ogg_int64_t->__int64
public long floor_bits;
/// ogg_int64_t->__int64
public long res_bits;
/// void*
public IntPtr backend_state;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct vorbis_block
{
/// float**
public IntPtr pcm;
/// oggpack_buffer->Anonymous_285a1b36_9595_4684_a26e_690f23135134
public oggpack_buffer opb;
/// int
public int lW;
/// int
public int W;
/// int
public int nW;
/// int
public int pcmend;
/// int
public int mode;
/// int
public int eofflag;
/// ogg_int64_t->__int64
public long granulepos;
/// ogg_int64_t->__int64
public long sequence;
/// vorbis_dsp_state*
public IntPtr vd;
/// void*
public IntPtr localstore;
/// int
public int localtop;
/// int
public int localalloc;
/// int
public int totaluse;
/// alloc_chain*
public IntPtr reap;
/// int
public int glue_bits;
/// int
public int time_bits;
/// int
public int floor_bits;
/// int
public int res_bits;
/// void*
public IntPtr @internal;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct alloc_chain
{
/// void*
public IntPtr ptr;
/// alloc_chain*
public IntPtr next;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct vorbis_comment
{
/// char**
public IntPtr user_comments;
/// int*
public IntPtr comment_lengths;
/// int
public int comments;
/// char*
public IntPtr vendor;
}
/// Return Type: size_t->unsigned int
///ptr: void*
///size: size_t->unsigned int
///nmemb: size_t->unsigned int
///datasource: void*
public delegate uint _read_func(IntPtr ptr, IntPtr size, IntPtr nmemb, IntPtr datasource);
/// Return Type: int
///datasource: void*
///offset: ogg_int64_t->__int64
///whence: int
public delegate int _seek_func(IntPtr datasource, long offset, int whence);
/// Return Type: int
///datasource: void*
public delegate int _close_func(IntPtr datasource);
/// Return Type: int
///datasource: void*
public delegate int _tell_func(IntPtr datasource);
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct OggVorbis_File
{
/// void*
public IntPtr datasource;
/// int
public int seekable;
/// ogg_int64_t->__int64
public long offset;
/// ogg_int64_t->__int64
public long end;
/// ogg_sync_state->Anonymous_8020130d_6a89_4f66_8fe6_042783fcb26e
public ogg_sync_state oy;
/// int
public int links;
/// ogg_int64_t*
public IntPtr offsets;
/// ogg_int64_t*
public IntPtr dataoffsets;
/// int*
public IntPtr serialnos;
/// ogg_int64_t*
public IntPtr pcmlengths;
/// vorbis_info*
public IntPtr vi;
/// vorbis_comment*
public IntPtr vc;
/// ogg_int64_t->__int64
public long pcm_offset;
/// int
public int ready_state;
/// int
public int current_serialno;
/// int
public int current_link;
/// double
public double bittrack;
/// double
public double samptrack;
/// ogg_stream_state->Anonymous_b87fe6ab_9ba1_4af5_a28d_112928b9d5ec
public ogg_stream_state os;
/// vorbis_dsp_state
public vorbis_dsp_state vd;
/// vorbis_block
public vorbis_block vb;
/// ov_callbacks->Anonymous_d6f414e8_3702_4d14_99c9_91cdcb94f508
public ov_callbacks callbacks;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct ovectl_ratemanage_arg
{
/// int
public int management_active;
/// int
public int bitrate_hard_min;
/// int
public int bitrate_hard_max;
/// double
public double bitrate_hard_window;
/// int
public int bitrate_av_lo;
/// int
public int bitrate_av_hi;
/// double
public double bitrate_av_window;
/// double
public double bitrate_av_window_center;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct ovectl_ratemanage2_arg
{
/// int
public int management_active;
/// int
public int bitrate_limit_min_kbps;
/// int
public int bitrate_limit_max_kbps;
/// int
public int bitrate_limit_reservoir_bits;
/// double
public double bitrate_limit_reservoir_bias;
/// int
public int bitrate_average_kbps;
/// double
public double bitrate_average_damping;
}
/// Return Type: void
///pcm: float**
///channels: int
///samples: int
///filter_param: void*
public delegate void Anonymous_84c13e06_455d_4e54_b13e_5306b4d9db9b(ref IntPtr pcm, int channels, int samples, IntPtr filter_param);
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct oggpack_buffer
{
/// int
public int endbyte;
/// int
public int endbit;
/// void*
public IntPtr buffer;
/// void*
public IntPtr ptr;
/// int
public int storage;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct ogg_sync_state
{
/// void*
public IntPtr data;
/// int
public int storage;
/// int
public int fill;
/// int
public int returned;
/// int
public int unsynced;
/// int
public int headerbytes;
/// int
public int bodybytes;
}
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public unsafe struct ogg_stream_state
{
/// void*
public IntPtr body_data;
/// int
public int body_storage;
/// int
public int body_fill;
/// int
public int body_returned;
/// int*
public IntPtr lacing_vals;
/// ogg_int64_t*
public IntPtr granule_vals;
/// int
public int lacing_storage;
/// int
public int lacing_fill;
/// int
public int lacing_packet;
/// int
public int lacing_returned;
/// unsigned char[282]
public fixed byte header[282];
/// int
public int header_fill;
/// int
public int e_o_s;
/// int
public int b_o_s;
/// int
public int serialno;
/// int
public int pageno;
/// ogg_int64_t->__int64
public long packetno;
/// ogg_int64_t->__int64
public long granulepos;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct ov_callbacks
{
/// _read_func
public _read_func AnonymousMember1;
/// _seek_func
public _seek_func AnonymousMember2;
/// _close_func
public _close_func AnonymousMember3;
/// _tell_func
public _tell_func AnonymousMember4;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct ogg_packet
{
/// void*
public IntPtr packet;
/// int
public int bytes;
/// int
public int b_o_s;
/// int
public int e_o_s;
/// ogg_int64_t->__int64
public long granulepos;
/// ogg_int64_t->__int64
public long packetno;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct ogg_iovec_t
{
/// void*
public IntPtr iov_base;
/// size_t->unsigned int
public uint iov_len;
}
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct ogg_page
{
/// void*
public IntPtr header;
/// int
public int header_len;
/// void*
public IntPtr body;
/// int
public int body_len;
}
public partial class NativeMethods
{
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_writeinit")]
public static extern void oggpack_writeinit(ref oggpack_buffer b);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_writecheck")]
public static extern int oggpack_writecheck(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_writetrunc")]
public static extern void oggpack_writetrunc(ref oggpack_buffer b, int bits);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_writealign")]
public static extern void oggpack_writealign(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
///source: void*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_writecopy")]
public static extern void oggpack_writecopy(ref oggpack_buffer b, IntPtr source, int bits);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_reset")]
public static extern void oggpack_reset(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_writeclear")]
public static extern void oggpack_writeclear(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
///buf: void*
///bytes: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_readinit")]
public static extern void oggpack_readinit(ref oggpack_buffer b, IntPtr buf, int bytes);
/// Return Type: void
///b: oggpack_buffer*
///value: unsigned int
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_write")]
public static extern void oggpack_write(ref oggpack_buffer b, uint value, int bits);
/// Return Type: int
///b: oggpack_buffer*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_look")]
public static extern int oggpack_look(ref oggpack_buffer b, int bits);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_look1")]
public static extern int oggpack_look1(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_adv")]
public static extern void oggpack_adv(ref oggpack_buffer b, int bits);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_adv1")]
public static extern void oggpack_adv1(ref oggpack_buffer b);
/// Return Type: int
///b: oggpack_buffer*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_read")]
public static extern int oggpack_read(ref oggpack_buffer b, int bits);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_read1")]
public static extern int oggpack_read1(ref oggpack_buffer b);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_bytes")]
public static extern int oggpack_bytes(ref oggpack_buffer b);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_bits")]
public static extern int oggpack_bits(ref oggpack_buffer b);
/// Return Type: void*
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpack_get_buffer")]
public static extern IntPtr oggpack_get_buffer(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_writeinit")]
public static extern void oggpackB_writeinit(ref oggpack_buffer b);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_writecheck")]
public static extern int oggpackB_writecheck(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_writetrunc")]
public static extern void oggpackB_writetrunc(ref oggpack_buffer b, int bits);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_writealign")]
public static extern void oggpackB_writealign(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
///source: void*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_writecopy")]
public static extern void oggpackB_writecopy(ref oggpack_buffer b, IntPtr source, int bits);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_reset")]
public static extern void oggpackB_reset(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_writeclear")]
public static extern void oggpackB_writeclear(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
///buf: void*
///bytes: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_readinit")]
public static extern void oggpackB_readinit(ref oggpack_buffer b, IntPtr buf, int bytes);
/// Return Type: void
///b: oggpack_buffer*
///value: unsigned int
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_write")]
public static extern void oggpackB_write(ref oggpack_buffer b, uint value, int bits);
/// Return Type: int
///b: oggpack_buffer*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_look")]
public static extern int oggpackB_look(ref oggpack_buffer b, int bits);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_look1")]
public static extern int oggpackB_look1(ref oggpack_buffer b);
/// Return Type: void
///b: oggpack_buffer*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_adv")]
public static extern void oggpackB_adv(ref oggpack_buffer b, int bits);
/// Return Type: void
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_adv1")]
public static extern void oggpackB_adv1(ref oggpack_buffer b);
/// Return Type: int
///b: oggpack_buffer*
///bits: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_read")]
public static extern int oggpackB_read(ref oggpack_buffer b, int bits);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_read1")]
public static extern int oggpackB_read1(ref oggpack_buffer b);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_bytes")]
public static extern int oggpackB_bytes(ref oggpack_buffer b);
/// Return Type: int
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_bits")]
public static extern int oggpackB_bits(ref oggpack_buffer b);
/// Return Type: void*
///b: oggpack_buffer*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "oggpackB_get_buffer")]
public static extern IntPtr oggpackB_get_buffer(ref oggpack_buffer b);
/// Return Type: int
///os: ogg_stream_state*
///op: ogg_packet*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_stream_packetin")]
public static extern int ogg_stream_packetin(ref ogg_stream_state os, ref ogg_packet op);
/// Return Type: int
///os: ogg_stream_state*
///iov: ogg_iovec_t*
///count: int
///e_o_s: int
///granulepos: ogg_int64_t->__int64
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_stream_iovecin")]
public static extern int ogg_stream_iovecin(ref ogg_stream_state os, ref ogg_iovec_t iov, int count, int e_o_s, long granulepos);
/// Return Type: int
///os: ogg_stream_state*
///og: ogg_page*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_stream_pageout")]
public static extern int ogg_stream_pageout(ref ogg_stream_state os, ref ogg_page og);
/// Return Type: int
///os: ogg_stream_state*
///og: ogg_page*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_stream_flush")]
public static extern int ogg_stream_flush(ref ogg_stream_state os, ref ogg_page og);
/// Return Type: int
///oy: ogg_sync_state*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_init")]
public static extern int ogg_sync_init(ref ogg_sync_state oy);
/// Return Type: int
///oy: ogg_sync_state*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_clear")]
public static extern int ogg_sync_clear(ref ogg_sync_state oy);
/// Return Type: int
///oy: ogg_sync_state*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_reset")]
public static extern int ogg_sync_reset(ref ogg_sync_state oy);
/// Return Type: int
///oy: ogg_sync_state*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_destroy")]
public static extern int ogg_sync_destroy(ref ogg_sync_state oy);
/// Return Type: int
///oy: ogg_sync_state*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_check")]
public static extern int ogg_sync_check(ref ogg_sync_state oy);
/// Return Type: char*
///oy: ogg_sync_state*
///size: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_buffer")]
public static extern IntPtr ogg_sync_buffer(ref ogg_sync_state oy, int size);
/// Return Type: int
///oy: ogg_sync_state*
///bytes: int
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_wrote")]
public static extern int ogg_sync_wrote(ref ogg_sync_state oy, int bytes);
/// Return Type: int
///oy: ogg_sync_state*
///og: ogg_page*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_pageseek")]
public static extern int ogg_sync_pageseek(ref ogg_sync_state oy, ref ogg_page og);
/// Return Type: int
///oy: ogg_sync_state*
///og: ogg_page*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_sync_pageout")]
public static extern int ogg_sync_pageout(ref ogg_sync_state oy, ref ogg_page og);
/// Return Type: int
///os: ogg_stream_state*
///og: ogg_page*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_stream_pagein")]
public static extern int ogg_stream_pagein(ref ogg_stream_state os, ref ogg_page og);
/// Return Type: int
///os: ogg_stream_state*
///op: ogg_packet*
[DllImportAttribute("libogg.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "ogg_stream_packetout")]