mirror of
https://github.com/alexkay/spek.git
synced 2025-04-19 18:07:37 +03:00
Use GLib instead of Posix
This commit is contained in:
parent
ddc8769bfa
commit
fe590c87e8
@ -29,7 +29,7 @@ PKG_CHECK_MODULES(SPEK, [$pkg_modules])
|
||||
AC_SUBST(SPEK_CFLAGS)
|
||||
AC_SUBST(SPEK_LIBS)
|
||||
|
||||
SPEK_PACKAGES="--pkg gtk+-2.0 --pkg gio-2.0 --pkg posix"
|
||||
SPEK_PACKAGES="--pkg gtk+-2.0 --pkg gio-2.0"
|
||||
AC_SUBST(SPEK_PACKAGES)
|
||||
|
||||
AC_CHECK_LIB(m, log10f)
|
||||
|
@ -122,7 +122,7 @@ namespace Spek {
|
||||
float cf = 2f * (float) Math.PI / nfft;
|
||||
int size;
|
||||
|
||||
Posix.memset (output, 0, sizeof (float) * bands);
|
||||
Memory.set (output, 0, sizeof (float) * bands);
|
||||
|
||||
while ((size = cx.read (this.buffer)) > 0) {
|
||||
lock (quit) {
|
||||
@ -177,7 +177,7 @@ namespace Spek {
|
||||
if (sample == samples) {
|
||||
return null;
|
||||
}
|
||||
Posix.memset (output, 0, sizeof (float) * bands);
|
||||
Memory.set (output, 0, sizeof (float) * bands);
|
||||
frames = 0;
|
||||
num_fft = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user