Use GLib instead of Posix

This commit is contained in:
Alexander Kojevnikov 2010-07-08 14:17:36 +10:00
parent ddc8769bfa
commit fe590c87e8
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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;
}