Opened 2 years ago

Closed 4 months ago

#1163 closed Bug Report (fixed)

Make sample_rate a float as in Options iface

Reported by: Hanspeter Portner Owned by: David Robillard
Priority: major Component: Jalv
Keywords: Cc:


sample_rate is reported to be a float in Options iface (as it should), but internally it is an integer, so casting on plugin side does not work.

The following changes since commit 5f015f74427e39ca411032f5f42bc969f89cf9fe:

  Initialize worker if plugin provides necessary interface (2017-03-18 14:55:03 +0100)

are available in the git repository at: fix_sample_rate_type

for you to fetch changes up to d0fc5af651c7f5cdb067dd2977d62bd97076a4e8:

  Make sample_rate a float as in Options iface (2017-04-04 19:03:47 +0200)

Hanspeter Portner (1):
      Make sample_rate a float as in Options iface

 src/jalv_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jalv_internal.h b/src/jalv_internal.h
index 06f116a..5fc41cc 100644
--- a/src/jalv_internal.h
+++ b/src/jalv_internal.h
@@ -308,7 +308,7 @@ struct Jalv {
 	uint32_t           longest_sym;    ///< Longest port symbol
 	uint32_t           plugin_latency; ///< Latency reported by plugin (if any)
 	float              ui_update_hz;   ///< Frequency of UI updates
-	uint32_t           sample_rate;    ///< Sample rate
+	float              sample_rate;    ///< Sample rate
 	uint32_t           event_delta_t;  ///< Frames since last update sent to UI
 	uint32_t           midi_event_id;  ///< MIDI event class ID in event context
 	uint32_t           position;       ///< Transport position in frames

Change History (1)

comment:1 Changed 4 months ago by David Robillard

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.