int AUD_write (SWVoiceOut *sw, void *buf, int size)

{

    int bytes;



    if (!sw) {

        /* XXX: Consider options */

        return size;

    }



    if (!sw->hw->enabled) {

        dolog ("Writing to disabled voice %s\n", SW_NAME (sw));

        return 0;

    }



    bytes = sw->hw->pcm_ops->write (sw, buf, size);

    return bytes;

}

int AUD_write (SWVoiceOut *sw, void *buf, int size)

{

    int bytes;



    if (!sw) {

        

        return size;

    }



    if (!sw->hw->enabled) {

        dolog ("Writing to disabled voice %s\n", SW_NAME (sw));

        return 0;

    }



    bytes = sw->hw->pcm_ops->write (sw, buf, size);

    return bytes;

}

int FUNC_0 (SWVoiceOut *VAR_0, void *VAR_1, int VAR_2)

{

    int VAR_3;



    if (!VAR_0) {

        

        return VAR_2;

    }



    if (!VAR_0->hw->enabled) {

        dolog ("Writing to disabled voice %s\n", SW_NAME (VAR_0));

        return 0;

    }



    VAR_3 = VAR_0->hw->pcm_ops->write (VAR_0, VAR_1, VAR_2);

    return VAR_3;

}

int FUNC_0 (SWVoiceOut *VAR_0, void *VAR_1, int VAR_2)
{ int VAR_3; if (!VAR_0) { return VAR_2; } if (!VAR_0->hw->enabled) { dolog ("Writing to disabled voice %s\n", SW_NAME (VAR_0)); return 0; } VAR_3 = VAR_0->hw->pcm_ops->write (VAR_0, VAR_1, VAR_2); return VAR_3; }