[pulseaudio-commits] r1555 - in /branches/lennart/src/pulsecore: sink.h source.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Jul 28 13:58:33 PDT 2007


Author: lennart
Date: Sat Jul 28 22:58:33 2007
New Revision: 1555

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1555&root=3Dpulseaudio&vi=
ew=3Drev
Log:
add PA_SINK_OPENED/PA_SOURCE_OPENED macros for easier checking for _IDLE or=
 _RUNNING states

Modified:
    branches/lennart/src/pulsecore/sink.h
    branches/lennart/src/pulsecore/source.h

Modified: branches/lennart/src/pulsecore/sink.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
sink.h?rev=3D1555&root=3Dpulseaudio&r1=3D1554&r2=3D1555&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/sink.h (original)
+++ branches/lennart/src/pulsecore/sink.h Sat Jul 28 22:58:33 2007
@@ -157,5 +157,9 @@
 void pa_sink_render_into_full(pa_sink *s, pa_memchunk *target);
 =

 int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, pa_memc=
hunk *chunk);
-    =

+
+static inline int PA_SINK_OPENED(pa_sink_state_t x) {
+    return x =3D=3D PA_SINK_RUNNING || x =3D=3D PA_SINK_IDLE;
+}
+
 #endif

Modified: branches/lennart/src/pulsecore/source.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
source.h?rev=3D1555&root=3Dpulseaudio&r1=3D1554&r2=3D1555&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/source.h (original)
+++ branches/lennart/src/pulsecore/source.h Sat Jul 28 22:58:33 2007
@@ -148,4 +148,8 @@
 void pa_source_post(pa_source*s, const pa_memchunk *b);
 int pa_source_process_msg(pa_msgobject *o, int code, void *userdata, pa_me=
mchunk *chunk);
 =

+static inline int PA_SOURCE_OPENED(pa_source_state_t x) {
+    return x =3D=3D PA_SOURCE_RUNNING || x =3D=3D PA_SOURCE_IDLE;
+}
+
 #endif




More information about the pulseaudio-commits mailing list