summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/pcmbuf.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index a25723a299..61c6c45de2 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -391,7 +391,8 @@ void pcmbuf_play_stop(void)
#endif
}
-int pcmbuf_used_descs(void) {
+int pcmbuf_used_descs(void)
+{
struct pcmbufdesc *pcmbuf_temp = pcmbuf_read;
unsigned int i = 0;
while (pcmbuf_temp) {
@@ -401,11 +402,13 @@ int pcmbuf_used_descs(void) {
return i;
}
-int pcmbuf_descs(void) {
+int pcmbuf_descs(void)
+{
return PCMBUF_DESCS(pcmbuf_size);
}
-static void pcmbuf_init_pcmbuffers(void) {
+static void pcmbuf_init_pcmbuffers(void)
+{
struct pcmbufdesc *next = pcmbuf_write;
next++;
pcmbuf_write_end = pcmbuf_write;