[PATCH 2/2] BSE: more Bse:: namespace for uint8, uint32 and uint64 in bse includes
- From: Stefan Westerfeld <stefan space twc de>
- To: timj gnu org
- Cc: beast gnome org, Stefan Westerfeld <stefan space twc de>
- Subject: [PATCH 2/2] BSE: more Bse:: namespace for uint8, uint32 and uint64 in bse includes
- Date: Fri, 7 Apr 2017 12:22:20 +0200
Signed-off-by: Stefan Westerfeld <stefan space twc de>
---
bse/bsemididecoder.hh | 12 ++++++------
bse/bsemidievent.hh | 6 +++---
bse/bsepcmwriter.hh | 10 +++++-----
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/bse/bsemididecoder.hh b/bse/bsemididecoder.hh
index d48b3b8..26d42b9 100644
--- a/bse/bsemididecoder.hh
+++ b/bse/bsemididecoder.hh
@@ -26,14 +26,14 @@ struct BseMidiDecoder {
/*< private >*/
uint state_changed : 1;
BseMidiDecoderState state;
- uint32 delta_time; /* valid after BSE_MIDI_DECODER_DELTA_TIME_LOW */
+ Bse::uint32 delta_time; /* valid after BSE_MIDI_DECODER_DELTA_TIME_LOW */
BseMidiEventType event_type; /* event after BSE_MIDI_DECODER_META_EVENT */
BseMidiEventType running_mode;
uint zchannel; /* current channel prefix (offset=-1) */
- uint32 left_bytes; /* data to be read (BSE_MIDI_DECODER_DATA) */
+ Bse::uint32 left_bytes; /* data to be read (BSE_MIDI_DECODER_DATA) */
/* data accu */
uint n_bytes;
- uint8 *bytes;
+ Bse::uint8 *bytes;
};
@@ -44,11 +44,11 @@ BseMidiDecoder* bse_midi_decoder_new (gboolean
void bse_midi_decoder_destroy (BseMidiDecoder *self);
void bse_midi_decoder_push_data (BseMidiDecoder *self,
uint n_bytes,
- uint8 *bytes,
- uint64 usec_systime);
+ Bse::uint8 *bytes,
+ Bse::uint64 usec_systime);
void bse_midi_decoder_push_smf_data (BseMidiDecoder *self,
uint n_bytes,
- uint8 *bytes);
+ Bse::uint8 *bytes);
BseMidiEvent* bse_midi_decoder_pop_event (BseMidiDecoder *self);
SfiRing* bse_midi_decoder_pop_event_list (BseMidiDecoder *self);
diff --git a/bse/bsemidievent.hh b/bse/bsemidievent.hh
index 7a10200..0934394 100644
--- a/bse/bsemidievent.hh
+++ b/bse/bsemidievent.hh
@@ -124,14 +124,14 @@ BseMidiEvent* bse_midi_alloc_event (void);
BseMidiEvent* bse_midi_copy_event (const BseMidiEvent *src);
void bse_midi_free_event (BseMidiEvent *event);
BseMidiEvent* bse_midi_event_note_on (uint midi_channel,
- uint64 delta_time,
+ Bse::uint64 delta_time,
float frequency,
float velocity);
BseMidiEvent* bse_midi_event_note_off (uint midi_channel,
- uint64 delta_time,
+ Bse::uint64 delta_time,
gfloat frequency);
BseMidiEvent* bse_midi_event_signal (uint midi_channel,
- uint64 delta_time,
+ Bse::uint64 delta_time,
Bse::MidiSignal signal_type,
float value);
double bse_midi_signal_default (Bse::MidiSignal signal);
diff --git a/bse/bsepcmwriter.hh b/bse/bsepcmwriter.hh
index f723cf5..70f8b06 100644
--- a/bse/bsepcmwriter.hh
+++ b/bse/bsepcmwriter.hh
@@ -19,19 +19,19 @@ struct BsePcmWriter : BseItem {
guint open : 1;
guint broken : 1;
gint fd;
- uint64 n_bytes;
- uint64 recorded_maximum;
- uint64 start_tick;
+ Bse::uint64 n_bytes;
+ Bse::uint64 recorded_maximum;
+ Bse::uint64 start_tick;
};
struct BsePcmWriterClass : BseItemClass
{};
Bse::Error bse_pcm_writer_open (BsePcmWriter *pdev, const gchar *file, guint n_channels,
- guint sample_freq, uint64 recorded_maximum);
+ guint sample_freq, Bse::uint64 recorded_maximum);
void bse_pcm_writer_close (BsePcmWriter *pdev);
/* writing is lock protected */
void bse_pcm_writer_write (BsePcmWriter *pdev, size_t n_values,
- const float *values, uint64 start_stamp);
+ const float *values, Bse::uint64 start_stamp);
namespace Bse {
--
2.7.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]