Skip to content

Commit

Permalink
Clarify licensing in headers, LICENSE and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wallisch committed Sep 27, 2024
1 parent d344e1a commit bf1b4a5
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 20 deletions.
8 changes: 3 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
MIT License

Copyright (c) 2010-2016 Lukas Lalinsky on chromaprint
https://github.com/acoustid/chromaprint
Copyright (c) 2016 David Dias on substantial parts of AudioDecoder.swift
https://github.com/NeoTeo/fingerprinter-chromaprint
Copyright (c) 2021 Philipp Wallisch on any other code
Copyright 2010-2016 Lukas Lalinsky on chromaprint
Copyright 2016 David Dias on substantial parts of AudioDecoder.swift
Copyright 2021, 2024 Philipp Wallisch on any other code

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,9 @@ The `AudioFingerprint` class throws either `AudioDecoder.Error` or `AudioFingerp
You can also `import CChromaprint` to directly interact with Chromaprints C interface. Please refer to the official documentation for further information.

*Note: To avoid licensing issues, CChromaprint has internal input resampling disabled and thus requires that input audio for the fingerprinter is already at the configured fingerprint sample rate.*

### Licensing

This package is distributed under the MIT license, see the LICENSE file for details.

The chromaprint project by default includes resampling code from the ffmpeg library, which is licensed under LGPL 2.1. ChromaSwift however uses Apples AVFoundation for resampling and removes all ffmpeg code from the build, making the package fully MIT compliant.
4 changes: 2 additions & 2 deletions Sources/ChromaSwift/AcoustID.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2021 Philipp Wallisch
// Distributed under the MIT license, see the LICENSE file for details.
// Copyright 2021, 2024 Philipp Wallisch
// SPDX-License-Identifier: MIT

import Foundation

Expand Down
6 changes: 3 additions & 3 deletions Sources/ChromaSwift/AudioDecoder.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Philipp Wallisch
// Copyright (c) 2016 David Dias
// Distributed under the MIT license, see the LICENSE file for details.
// Copyright 2016 David Dias
// Copyright 2021 Philipp Wallisch
// SPDX-License-Identifier: MIT

import AVFoundation
import CChromaprint
Expand Down
4 changes: 2 additions & 2 deletions Sources/ChromaSwift/AudioFingerprint.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2021 Philipp Wallisch
// Distributed under the MIT license, see the LICENSE file for details.
// Copyright 2021, 2024 Philipp Wallisch
// SPDX-License-Identifier: MIT

import Foundation
import CChromaprint
Expand Down
4 changes: 2 additions & 2 deletions Sources/ChromaSwift/URLSessionProtocol.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2024 Philipp Wallisch
// Distributed under the MIT license, see the LICENSE file for details.
// Copyright 2024 Philipp Wallisch
// SPDX-License-Identifier: MIT

import Foundation

Expand Down
4 changes: 2 additions & 2 deletions Tests/CChromaprintTests/CChromaprintTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2021 Philipp Wallisch
// Distributed under the MIT license, see the LICENSE file for details.
// Copyright 2021 Philipp Wallisch
// SPDX-License-Identifier: MIT

import XCTest
import CChromaprint
Expand Down
4 changes: 2 additions & 2 deletions Tests/ChromaSwiftTests/ChromaSwiftTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2021 Philipp Wallisch
// Distributed under the MIT license, see the LICENSE file for details.
// Copyright 2021, 2024 Philipp Wallisch
// SPDX-License-Identifier: MIT

import XCTest
@testable import ChromaSwift
Expand Down
4 changes: 2 additions & 2 deletions Tests/ChromaSwiftTests/URLSessionMock.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2024 Philipp Wallisch
// Distributed under the MIT license, see the LICENSE file for details.
// Copyright 2024 Philipp Wallisch
// SPDX-License-Identifier: MIT

import Foundation
@testable import ChromaSwift
Expand Down

0 comments on commit bf1b4a5

Please sign in to comment.