mirror of
https://github.com/alexkay/spek.git
synced 2025-04-26 04:42:15 +03:00
libavcodec crashes on Windows when using the usual malloc, av_malloc makes sure the allocated buffer is properly aligned.
30 lines
816 B
Vala
30 lines
816 B
Vala
[CCode (cprefix = "SpekAudio", lower_case_cprefix = "spek_audio_", cheader_filename = "spek-audio.h")]
|
|
namespace Spek.Audio {
|
|
[Compact]
|
|
[CCode (free_function = "spek_audio_close")]
|
|
public class Context {
|
|
public string file_name;
|
|
public string codec_name;
|
|
public string error;
|
|
public int bit_rate;
|
|
public int sample_rate;
|
|
public int bits_per_sample;
|
|
public int width;
|
|
public bool fp;
|
|
public int channels;
|
|
public double duration;
|
|
public uint8 *buffer;
|
|
public int64 frames_per_interval;
|
|
public int64 error_per_interval;
|
|
public int64 error_base;
|
|
|
|
[CCode (cname = "spek_audio_open")]
|
|
public Context (string file_name);
|
|
[CCode (cname = "spek_audio_start")]
|
|
public int start (int samples);
|
|
[CCode (cname = "spek_audio_read")]
|
|
public int read ();
|
|
}
|
|
public static void init ();
|
|
}
|