spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit fe590c87e85fdea8b23b0517ec548c7bedfebf14
parent ddc8769bfa305d593c7948d4ea49cb6c0bdc9a41
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Thu,  8 Jul 2010 14:17:36 +1000

Use GLib instead of Posix

Diffstat:
Mconfigure.ac | 2+-
Msrc/spek-pipeline.vala | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -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) diff --git a/src/spek-pipeline.vala b/src/spek-pipeline.vala @@ -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; }