[vlc-commits] audioqueue: switch from section comments to more useful pragma marks since those are recognized by Xcode
Felix Paul Kühne
git at videolan.org
Mon Feb 4 20:51:52 CET 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Feb 4 20:51:41 2013 +0100| [766083444177a16fffb7c5dfeb0dd2f4f4fe75d4] | committer: Felix Paul Kühne
audioqueue: switch from section comments to more useful pragma marks since those are recognized by Xcode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=766083444177a16fffb7c5dfeb0dd2f4f4fe75d4
---
modules/audio_output/audioqueue.c | 38 +++++++++----------------------------
1 file changed, 9 insertions(+), 29 deletions(-)
diff --git a/modules/audio_output/audioqueue.c b/modules/audio_output/audioqueue.c
index 75899f0..8f7f63d 100644
--- a/modules/audio_output/audioqueue.c
+++ b/modules/audio_output/audioqueue.c
@@ -24,9 +24,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-/*****************************************************************************
- * Preamble
- *****************************************************************************/
+#pragma mark includes
+
#ifdef HAVE_CONFIG_H
# import "config.h"
#endif
@@ -36,12 +35,9 @@
#import <vlc_aout.h>
#import <AudioToolBox/AudioQueue.h>
-/*****************************************************************************
- * aout_sys_t: private audio output method descriptor
- *****************************************************************************
- * This structure is part of the audio output thread descriptor.
- * It describes the AudioQueue specific properties of an output thread.
- *****************************************************************************/
+#pragma mark -
+#pragma mark private declarations
+
struct aout_sys_t
{
AudioQueueRef audioQueue;
@@ -53,9 +49,6 @@ struct aout_sys_t
float f_volume;
};
-/*****************************************************************************
- * Local prototypes
- *****************************************************************************/
static int Open (vlc_object_t *);
static void Close (vlc_object_t *);
static void Play (audio_output_t *, block_t *);
@@ -68,9 +61,6 @@ static int Start(audio_output_t *, audio_sample_format_t *);
static void Stop(audio_output_t *);
static int VolumeSet(audio_output_t *, float );
-/*****************************************************************************
- * Module descriptor
- *****************************************************************************/
vlc_module_begin ()
set_shortname("AudioQueue")
set_description(N_("AudioQueue (iOS / Mac OS) audio output"))
@@ -81,9 +71,8 @@ add_shortcut("audioqueue")
set_callbacks(Open, Close)
vlc_module_end ()
-/*****************************************************************************
- * Module management
- *****************************************************************************/
+#pragma mark -
+#pragma mark initialization
static int Open(vlc_object_t *obj)
{
@@ -127,10 +116,6 @@ static int VolumeSet(audio_output_t * p_aout, float volume)
return ostatus;
}
-/*****************************************************************************
- * Start: open the audio device
- *****************************************************************************/
-
static int Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt)
{
aout_sys_t *p_sys = p_aout->sys;
@@ -186,10 +171,6 @@ static int Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt)
return VLC_SUCCESS;
}
-/*****************************************************************************
- * Stop: close the audio device
- *****************************************************************************/
-
static void Stop(audio_output_t *p_aout)
{
p_aout->sys->b_stopped = true;
@@ -202,9 +183,8 @@ static void Stop(audio_output_t *p_aout)
msg_Dbg(p_aout, "audioqueue stopped and disposed");
}
-/*****************************************************************************
- * actual playback
- *****************************************************************************/
+#pragma mark -
+#pragma mark actual playback
static void Play(audio_output_t *p_aout, block_t *p_block)
{
More information about the vlc-commits
mailing list