X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fsound_bindings.cc;h=65bcd0160aee8660da003e7090996aa9c561ec3c;hp=6849d91696e66f3fd2a625a968e6f165d43dc481;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/moof/sound_bindings.cc b/src/moof/sound_bindings.cc index 6849d91..65bcd01 100644 --- a/src/moof/sound_bindings.cc +++ b/src/moof/sound_bindings.cc @@ -1,13 +1,11 @@ -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** +/*] Copyright (c) 2009-2011, Charles McGarvey [***************************** **] All rights reserved. * -* vi:ts=4 sw=4 tw=75 -* * Distributable under the terms and conditions of the 2-clause BSD license; * see the file COPYING for a complete text of the license. * -**************************************************************************/ +*****************************************************************************/ #include "script.hh" #include "sound.hh" @@ -103,7 +101,6 @@ static int sound_is_playing(script& script) return 1; } - void sound::import(script& script, const std::string& nspace) { script.check_stack(4); @@ -111,13 +108,13 @@ void sound::import(script& script, const std::string& nspace) script::slot parent = script.push_table(nspace); script::slot meta = script.push_class(sound_new); - meta.set_field("sample", sound_sample); - meta.set_field("queue", sound_queue); + meta.set_field("is_playing", sound_is_playing); + meta.set_field("pause", sound_pause); meta.set_field("play", sound_play); + meta.set_field("queue", sound_queue); + meta.set_field("sample", sound_sample); meta.set_field("stop", sound_stop); - meta.set_field("pause", sound_pause); meta.set_field("toggle", sound_toggle); - meta.set_field("is_playing", sound_is_playing); parent.set_field("sound"); parent.pop();