Skip to content

Commit bf1b4a5

Browse files
committed
Clarify licensing in headers, LICENSE and README.md
1 parent d344e1a commit bf1b4a5

9 files changed

+24
-20
lines changed

LICENSE

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
MIT License
22

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

97
Permission is hereby granted, free of charge, to any person obtaining a copy
108
of this software and associated documentation files (the "Software"), to deal

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,9 @@ The `AudioFingerprint` class throws either `AudioDecoder.Error` or `AudioFingerp
153153
You can also `import CChromaprint` to directly interact with Chromaprints C interface. Please refer to the official documentation for further information.
154154

155155
*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.*
156+
157+
### Licensing
158+
159+
This package is distributed under the MIT license, see the LICENSE file for details.
160+
161+
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.

Sources/ChromaSwift/AcoustID.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright (c) 2021 Philipp Wallisch
2-
// Distributed under the MIT license, see the LICENSE file for details.
1+
// Copyright 2021, 2024 Philipp Wallisch
2+
// SPDX-License-Identifier: MIT
33

44
import Foundation
55

Sources/ChromaSwift/AudioDecoder.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (c) 2021 Philipp Wallisch
2-
// Copyright (c) 2016 David Dias
3-
// Distributed under the MIT license, see the LICENSE file for details.
1+
// Copyright 2016 David Dias
2+
// Copyright 2021 Philipp Wallisch
3+
// SPDX-License-Identifier: MIT
44

55
import AVFoundation
66
import CChromaprint

Sources/ChromaSwift/AudioFingerprint.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright (c) 2021 Philipp Wallisch
2-
// Distributed under the MIT license, see the LICENSE file for details.
1+
// Copyright 2021, 2024 Philipp Wallisch
2+
// SPDX-License-Identifier: MIT
33

44
import Foundation
55
import CChromaprint

Sources/ChromaSwift/URLSessionProtocol.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright (c) 2024 Philipp Wallisch
2-
// Distributed under the MIT license, see the LICENSE file for details.
1+
// Copyright 2024 Philipp Wallisch
2+
// SPDX-License-Identifier: MIT
33

44
import Foundation
55

Tests/CChromaprintTests/CChromaprintTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright (c) 2021 Philipp Wallisch
2-
// Distributed under the MIT license, see the LICENSE file for details.
1+
// Copyright 2021 Philipp Wallisch
2+
// SPDX-License-Identifier: MIT
33

44
import XCTest
55
import CChromaprint

Tests/ChromaSwiftTests/ChromaSwiftTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright (c) 2021 Philipp Wallisch
2-
// Distributed under the MIT license, see the LICENSE file for details.
1+
// Copyright 2021, 2024 Philipp Wallisch
2+
// SPDX-License-Identifier: MIT
33

44
import XCTest
55
@testable import ChromaSwift

Tests/ChromaSwiftTests/URLSessionMock.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright (c) 2024 Philipp Wallisch
2-
// Distributed under the MIT license, see the LICENSE file for details.
1+
// Copyright 2024 Philipp Wallisch
2+
// SPDX-License-Identifier: MIT
33

44
import Foundation
55
@testable import ChromaSwift

0 commit comments

Comments
 (0)