Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/audio-examples' into fea…
Browse files Browse the repository at this point in the history
…ture/audio-examples
  • Loading branch information
rothmichaels committed Jan 9, 2025
2 parents 7091c1e + 9fbe556 commit 8223e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/audio/third_party_audio_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct musical_context {

//! API provided by music host application to provide global info
//! about the playback engine.
musical_context get_musical_context()
inline musical_context get_musical_context()
{
// Example data, this would be variable in a real-world context
return musical_context{.current_sample_rate = 8000.f, .current_tempo = 130.f};
Expand Down
2 changes: 1 addition & 1 deletion example/audio/wrapped_third_party_audio_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct musical_context {
};

//! Typesafe wrapper around API for host application musical context
musical_context get_musical_context()
inline musical_context get_musical_context()
{
auto context = audio_third_party::get_musical_context();
return musical_context{.current_sample_rate = context.current_sample_rate * mp_units::si::hertz,
Expand Down

0 comments on commit 8223e15

Please sign in to comment.