X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/67895023d60fc492720d2f575045ed0173948947..70d2939adaa6ee884690256fccba884f6cc606b0:/lib/uaudio.c diff --git a/lib/uaudio.c b/lib/uaudio.c index 7f506ee..343290d 100644 --- a/lib/uaudio.c +++ b/lib/uaudio.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2009 Richard Kettlewell + * Copyright (C) 2009, 2013 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,6 +24,7 @@ #include "uaudio.h" #include "hash.h" #include "mem.h" +#include "log.h" /** @brief Options for chosen uaudio API */ static hash *uaudio_options; @@ -40,6 +41,9 @@ int uaudio_channels; /** @brief Whether samples are signed or unsigned */ int uaudio_signed; +/** @brief Frames of buffer to tolerate inside chosen API */ +int uaudio_buffer; + /** @brief Sample size in bytes * * NB one sample is a single point sample; up to @c uaudio_channels samples may